Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 102 kB / 17.06 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 195 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1786/0.1786, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 63.91 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4079/0.4095, allocations: 58.05 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.006534/0.4161, allocations: 5.391 MB / 0.5089 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005908/0.422, allocations: 4.162 MB / 0.5129 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004622/0.4225, allocations: 18.84 kB / 0.513 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01131/0.4338, allocations: 4.85 MB / 0.5177 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001265/0.4351, allocations: 332.5 kB / 0.518 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009113/0.436, allocations: 254.3 kB / 0.5183 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002685/0.4387, allocations: 1.561 MB / 0.5198 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007611/0.4395, allocations: 385.4 kB / 0.5202 GB, free: 14.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006912/0.4402, allocations: 379.2 kB / 0.5205 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006444/0.4409, allocations: 450.3 kB / 0.5209 GB, free: 14.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.236e-05/0.441, allocations: 45.38 kB / 0.521 GB, free: 14.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002966/0.4413, allocations: 121.2 kB / 0.5211 GB, free: 14.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002914/0.4416, allocations: 269.8 kB / 0.5214 GB, free: 14.01 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003464/0.4419, allocations: 324.8 kB / 0.5217 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.4431, allocations: 0.7466 MB / 0.5224 GB, free: 13.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.4431, allocations: 1.656 kB / 0.5224 GB, free: 13.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4431, allocations: 0 / 0.5224 GB, free: 13.53 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.4431, allocations: 0 / 0.5224 GB, free: 13.53 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002202/0.4453, allocations: 0.9087 MB / 0.5233 GB, free: 12.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.4454, allocations: 12.95 kB / 0.5233 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001263/0.4455, allocations: 96.77 kB / 0.5234 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004513/0.446, allocations: 92.44 kB / 0.5235 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001146/0.4471, allocations: 0.5593 MB / 0.524 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.775e-05/0.4472, allocations: 35.75 kB / 0.5241 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.4473, allocations: 48.33 kB / 0.5241 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.4484, allocations: 0.6476 MB / 0.5247 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.4485, allocations: 6.562 kB / 0.5247 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.157e-05/0.4485, allocations: 20.27 kB / 0.5248 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000149/0.4487, allocations: 49.05 kB / 0.5248 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009419/0.4496, allocations: 494.1 kB / 0.5253 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003967/0.4536, allocations: 2.531 MB / 0.5278 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004725/0.4541, allocations: 315.4 kB / 0.5281 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002712/0.4544, allocations: 184.8 kB / 0.5282 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.552e-05/0.4544, allocations: 11.66 kB / 0.5282 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.4545, allocations: 36.91 kB / 0.5283 GB, free: 9.656 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.964e-06/0.4545, allocations: 0 / 0.5283 GB, free: 9.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002918/0.4574, allocations: 1.622 MB / 0.5299 GB, free: 8.402 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.133e-05/0.4575, allocations: 111.5 kB / 0.53 GB, free: 8.273 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004916/0.458, allocations: 429.2 kB / 0.5304 GB, free: 8.008 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.458, allocations: 36.05 kB / 0.5304 GB, free: 7.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.4583, allocations: 305.4 kB / 0.5307 GB, free: 7.699 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.4584, allocations: 121.8 kB / 0.5308 GB, free: 7.594 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.4585, allocations: 88.97 kB / 0.5309 GB, free: 7.535 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.4587, allocations: 363.2 kB / 0.5312 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002846/0.459, allocations: 166.6 kB / 0.5314 GB, free: 7.102 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003952/0.4594, allocations: 295.3 kB / 0.5317 GB, free: 6.855 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007245/0.4602, allocations: 496.1 kB / 0.5322 GB, free: 6.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.4602, allocations: 2.031 kB / 0.5322 GB, free: 6.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001611/0.4618, allocations: 0.7962 MB / 0.5329 GB, free: 6.008 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.879e-05/0.4618, allocations: 7.906 kB / 0.533 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.4618, allocations: 3.969 kB / 0.533 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008106/0.4627, allocations: 213.5 kB / 0.5332 GB, free: 5.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/0.463, allocations: 80.28 kB / 0.5332 GB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005532/0.4686, allocations: 4.221 MB / 0.5374 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004045/0.469, allocations: 24.14 kB / 0.5374 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-05/0.4691, allocations: 19 kB / 0.5374 GB, free: 2.184 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0004056/0.4695, allocations: 226.6 kB / 0.5376 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.4696, allocations: 50.64 kB / 0.5377 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001201/0.4708, allocations: 0.6355 MB / 0.5383 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.647e-06/0.4709, allocations: 4.5 kB / 0.5383 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.4709, allocations: 1.188 kB / 0.5383 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4709, allocations: 1.156 kB / 0.5383 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/0.4732, allocations: 1.196 MB / 0.5395 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.4732, allocations: 1 kB / 0.5395 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004664/0.4737, allocations: 75.11 kB / 0.5395 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001765/0.4739, allocations: 56.45 kB / 0.5396 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.906e-05/0.474, allocations: 13.48 kB / 0.5396 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002206/0.4762, allocations: 2.84 MB / 0.5424 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4762, allocations: 1.094 kB / 0.5424 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.4774, allocations: 0.9526 MB / 0.5433 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002564/0.4777, allocations: 148.8 kB / 0.5434 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.821e-05/0.4778, allocations: 13.55 kB / 0.5435 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/0.4781, allocations: 8.031 kB / 0.5435 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.851e-05/0.4782, allocations: 36.56 kB / 0.5435 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.209e-05/0.4782, allocations: 13.25 kB / 0.5435 GB, free: 12.67 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003643/0.4786, allocations: 290.2 kB / 0.5438 GB, free: 12.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4786, allocations: 1.188 kB / 0.5438 GB, free: 12.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007429/0.4793, allocations: 133.5 kB / 0.5439 GB, free: 12.48 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,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.001639/0.481, allocations: 1.519 MB / 0.5454 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.4824, allocations: 0.7238 MB / 0.5461 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.4825, allocations: 1.438 kB / 0.5461 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005921/0.4831, allocations: 421.2 kB / 0.5465 GB, free: 10.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008346/0.4839, allocations: 128.3 kB / 0.5466 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008553/0.4925, allocations: 5.544 MB / 0.552 GB, free: 5.234 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007059/0.4932, allocations: 0.9405 MB / 0.553 GB, free: 4.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003551/0.4936, allocations: 104.4 kB / 0.5531 GB, free: 4.164 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003184/0.4939, allocations: 199.4 kB / 0.5533 GB, free: 3.969 MB / 414.1 MB Notification: Performance of SimCode: time 9.61e-07/0.4939, allocations: 0 / 0.5533 GB, free: 3.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04344/0.5374, allocations: 12.41 MB / 0.5654 GB, free: 7.75 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.76, allocations: 2.578 kB / 0.5654 GB, free: 7.75 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches