Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00184/0.00184, allocations: 116.1 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002391/0.002391, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 71.86 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3285, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01564/0.3442, allocations: 11.51 MB / 420.3 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009227/0.3534, allocations: 3.927 MB / 424.2 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002637/0.3561, allocations: 59.75 kB / 424.3 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00316/0.3593, allocations: 0.8491 MB / 425.1 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004075/0.3634, allocations: 0.9433 MB / 426.1 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002056/0.3655, allocations: 0.5185 MB / 426.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005135/0.3707, allocations: 3.23 MB / 429.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004036/0.3748, allocations: 2.586 MB / 432.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002905/0.3777, allocations: 1.429 MB / 433.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003848/0.3816, allocations: 1.821 MB / 435.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009801/0.3826, allocations: 388 kB / 436 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001987/0.3846, allocations: 0.6128 MB / 436.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001407/0.386, allocations: 1.067 MB / 437.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00304/0.389, allocations: 1.727 MB / 439.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007235/0.3963, allocations: 5.072 MB / 444.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3963, allocations: 0 / 444.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3963, allocations: 0 / 444.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001466/0.3965, allocations: 4 kB / 444.5 MB, free: 13.61 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.00987/0.4064, allocations: 3.574 MB / 448.1 MB, free: 9.961 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.845e-05/0.4064, allocations: 12.03 kB / 448.1 MB, free: 9.949 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007207/0.4072, allocations: 362.9 kB / 448.4 MB, free: 9.586 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001845/0.409, allocations: 454.7 kB / 448.9 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004047/0.4131, allocations: 1.879 MB / 450.8 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.4133, allocations: 189 kB / 451 MB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000447/0.4137, allocations: 255.9 kB / 451.2 MB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006395/0.4201, allocations: 3.247 MB / 454.4 MB, free: 3.445 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.877e-05/0.4202, allocations: 0 / 454.4 MB, free: 3.445 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002427/0.4205, allocations: 107.9 kB / 454.6 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000177/0.4207, allocations: 116.9 kB / 454.7 MB, free: 3.223 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005462/0.4261, allocations: 2.705 MB / 457.4 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02028/0.4465, allocations: 10.28 MB / 467.7 MB, free: 5.887 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002785/0.4493, allocations: 1.77 MB / 469.4 MB, free: 4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001959/0.4513, allocations: 1.046 MB / 470.5 MB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003443/0.4517, allocations: 211.1 kB / 470.7 MB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.098e-05/0.4517, allocations: 43.56 kB / 470.7 MB, free: 2.656 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 3.877e-06/0.4517, allocations: 4 kB / 470.7 MB, free: 2.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01901/0.4708, allocations: 7.459 MB / 478.2 MB, free: 11.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.097e-05/0.4709, allocations: 64.72 kB / 478.2 MB, free: 11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003518/0.4744, allocations: 1.893 MB / 480.1 MB, free: 9.109 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001574/0.4746, allocations: 45.7 kB / 480.2 MB, free: 9.059 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001361/0.476, allocations: 1.28 MB / 481.5 MB, free: 7.766 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007966/0.4768, allocations: 491.8 kB / 481.9 MB, free: 7.281 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006475/0.4774, allocations: 299.4 kB / 482.2 MB, free: 6.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.4777, allocations: 301.1 kB / 482.5 MB, free: 6.684 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001535/0.4792, allocations: 0.8198 MB / 483.4 MB, free: 5.863 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002016/0.4812, allocations: 1.308 MB / 484.7 MB, free: 4.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003777/0.485, allocations: 2.25 MB / 486.9 MB, free: 1.875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.485, allocations: 4 kB / 486.9 MB, free: 1.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005559/0.4906, allocations: 2.811 MB / 489.7 MB, free: 15.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.4907, allocations: 12.28 kB / 489.7 MB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.715e-05/0.4907, allocations: 20 kB / 489.8 MB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.4918, allocations: 429.5 kB / 490.2 MB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.4934, allocations: 399.3 kB / 490.6 MB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007681/0.5011, allocations: 5.789 MB / 496.4 MB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002214/0.5033, allocations: 131.8 kB / 496.5 MB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002051/0.5035, allocations: 71.94 kB / 496.6 MB, free: 7.906 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001735/0.5053, allocations: 0.7861 MB / 497.3 MB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005009/0.5058, allocations: 210.7 kB / 497.5 MB, free: 6.902 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004581/0.5104, allocations: 2.403 MB / 499.9 MB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.651e-05/0.5104, allocations: 19.98 kB / 500 MB, free: 4.438 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.5104, allocations: 7.938 kB / 500 MB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.5105, allocations: 3.984 kB / 500 MB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.5207, allocations: 5.269 MB / 0.4934 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.236e-05/0.5208, allocations: 4 kB / 0.4934 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.5219, allocations: 247.6 kB / 0.4936 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001366/0.5233, allocations: 469.8 kB / 0.4941 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.5234, allocations: 31.98 kB / 0.4941 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008797/0.5322, allocations: 7.345 MB / 0.5013 GB, free: 6.496 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.476e-05/0.5323, allocations: 11.88 kB / 0.5013 GB, free: 6.484 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00688/0.5391, allocations: 3.588 MB / 0.5048 GB, free: 2.797 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/0.5406, allocations: 455.7 kB / 0.5052 GB, free: 2.332 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003162/0.5409, allocations: 39.98 kB / 0.5053 GB, free: 2.293 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/0.5422, allocations: 99.88 kB / 0.5054 GB, free: 2.195 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000298/0.5425, allocations: 108.7 kB / 0.5055 GB, free: 2.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.5426, allocations: 43.98 kB / 0.5055 GB, free: 2.047 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002253/0.5449, allocations: 1.307 MB / 0.5068 GB, free: 0.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5449, allocations: 0 / 0.5068 GB, free: 0.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002248/0.5471, allocations: 0.543 MB / 0.5073 GB, free: 212 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007056/0.5542, allocations: 4.249 MB / 0.5115 GB, free: 11.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00485/0.5591, allocations: 2.44 MB / 0.5139 GB, free: 9.355 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.5591, allocations: 0 / 0.5139 GB, free: 9.355 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002808/0.5619, allocations: 1.514 MB / 0.5153 GB, free: 7.801 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/0.5645, allocations: 447.7 kB / 0.5158 GB, free: 7.371 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03865/0.6032, allocations: 20.52 MB / 0.5358 GB, free: 2.059 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002294/0.6055, allocations: 2.018 MB / 0.5378 GB, free: 8 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.2367/0.8422, allocations: 424.9 kB / 0.5382 GB, free: 125.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001772/0.844, allocations: 0.9997 MB / 0.5392 GB, free: 125.9 MB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/0.844, allocations: 0 / 0.5392 GB, free: 125.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09405/0.9381, allocations: 48.96 MB / 0.587 GB, free: 86.35 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.65/15.58, allocations: 7.859 kB / 0.587 GB, free: 86.34 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches