Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001866/0.001866, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0024/0.0024, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 51.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09899/0.1005, allocations: 53.32 MB / 426.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.2036/0.3041, allocations: 14.76 MB / 441.1 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02628/0.3304, allocations: 20.78 MB / 461.8 MB, free: 3.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003131/0.3335, allocations: 132.3 kB / 462 MB, free: 3.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003884/0.3374, allocations: 1.237 MB / 463.2 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009539/0.3469, allocations: 2.331 MB / 465.5 MB, free: 1.602 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005709/0.3526, allocations: 1.435 MB / 467 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01165/0.3643, allocations: 6.588 MB / 473.6 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008112/0.3651, allocations: 270.1 kB / 473.8 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002313/0.3674, allocations: 1.146 MB / 475 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001562/0.369, allocations: 1.115 MB / 476.1 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002078/0.3692, allocations: 74.72 kB / 476.2 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005255/0.3744, allocations: 1.477 MB / 477.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004865/0.3749, allocations: 336.1 kB / 478 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002164/0.3771, allocations: 1.366 MB / 479.3 MB, free: 10.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00721/0.3843, allocations: 3.795 MB / 483.1 MB, free: 7.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3843, allocations: 0 / 483.1 MB, free: 7.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3843, allocations: 4 kB / 483.1 MB, free: 7.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.125e-05/0.3844, allocations: 0 / 483.1 MB, free: 7.941 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006603/0.391, allocations: 3.813 MB / 486.9 MB, free: 4.043 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.391, allocations: 8.031 kB / 487 MB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000145/0.3912, allocations: 102.5 kB / 487.1 MB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005658/0.3918, allocations: 409.4 kB / 487.5 MB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003854/0.3956, allocations: 2.449 MB / 489.9 MB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.613e-05/0.3956, allocations: 40.92 kB / 489.9 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/0.3958, allocations: 56 kB / 490 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.3973, allocations: 0.7226 MB / 490.7 MB, free: 188 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.3973, allocations: 0 / 490.7 MB, free: 188 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.787e-05/0.3974, allocations: 20 kB / 490.7 MB, free: 168 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.3974, allocations: 23.98 kB / 490.8 MB, free: 144 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001833/0.3992, allocations: 0.8163 MB / 491.6 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005734/0.405, allocations: 3.059 MB / 494.6 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.4063, allocations: 0.522 MB / 495.2 MB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001071/0.4074, allocations: 0.5618 MB / 495.7 MB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03507/0.4424, allocations: 30.76 MB / 0.5141 GB, free: 8.078 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008195/0.4432, allocations: 357.7 kB / 0.5145 GB, free: 7.719 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.404e-06/0.4432, allocations: 0 / 0.5145 GB, free: 7.719 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002499/0.4457, allocations: 1.11 MB / 0.5156 GB, free: 6.602 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.426e-05/0.4458, allocations: 63.41 kB / 0.5156 GB, free: 6.527 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003845/0.4497, allocations: 2.935 MB / 0.5185 GB, free: 3.582 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.926e-05/0.4497, allocations: 37.7 kB / 0.5185 GB, free: 3.539 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001453/0.4512, allocations: 1.495 MB / 0.52 GB, free: 2.035 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000196/0.4514, allocations: 178.6 kB / 0.5202 GB, free: 1.859 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003411/0.4517, allocations: 226.4 kB / 0.5204 GB, free: 1.633 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.4519, allocations: 337.9 kB / 0.5207 GB, free: 1.297 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006497/0.4525, allocations: 245.9 kB / 0.5209 GB, free: 1.059 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009573/0.4535, allocations: 0.5981 MB / 0.5215 GB, free: 292 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001709/0.4552, allocations: 0.9012 MB / 0.5224 GB, free: 15.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.4552, allocations: 4 kB / 0.5224 GB, free: 15.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002604/0.4578, allocations: 1.236 MB / 0.5236 GB, free: 13.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.4578, allocations: 16 kB / 0.5236 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001338/0.458, allocations: 83.98 kB / 0.5237 GB, free: 13.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.325e-05/0.458, allocations: 19.94 kB / 0.5237 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007766/0.4588, allocations: 203.6 kB / 0.5239 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.925e-05/0.4588, allocations: 23.94 kB / 0.5239 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.4603, allocations: 119.2 kB / 0.524 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.4604, allocations: 64.62 kB / 0.5241 GB, free: 13.45 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008672/0.4612, allocations: 433.9 kB / 0.5245 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004911/0.4617, allocations: 401.5 kB / 0.5249 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002781/0.4645, allocations: 1.195 MB / 0.5261 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.4645, allocations: 8 kB / 0.5261 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.4645, allocations: 0 / 0.5261 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.4645, allocations: 3.984 kB / 0.5261 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003749/0.4683, allocations: 2.094 MB / 0.5281 GB, free: 9.242 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.804e-05/0.4684, allocations: 68 kB / 0.5282 GB, free: 9.176 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005222/0.4689, allocations: 99.92 kB / 0.5283 GB, free: 9.078 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.4689, allocations: 0 / 0.5283 GB, free: 9.078 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.062e-05/0.469, allocations: 31.98 kB / 0.5283 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.469, allocations: 4 kB / 0.5283 GB, free: 9.043 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.469, allocations: 3.938 kB / 0.5283 GB, free: 9.039 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002495/0.4715, allocations: 1.318 MB / 0.5296 GB, free: 7.691 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008889/0.4724, allocations: 494.5 kB / 0.5301 GB, free: 7.188 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002672/0.4726, allocations: 16 kB / 0.5301 GB, free: 7.172 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000659/0.4733, allocations: 27.95 kB / 0.5301 GB, free: 7.145 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.4735, allocations: 67.83 kB / 0.5302 GB, free: 7.078 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.082e-05/0.4736, allocations: 39.98 kB / 0.5302 GB, free: 7.039 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002814/0.4764, allocations: 1.903 MB / 0.5321 GB, free: 5.137 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4764, allocations: 0 / 0.5321 GB, free: 5.137 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0015/0.4779, allocations: 0.5891 MB / 0.5327 GB, free: 4.547 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004102/0.482, allocations: 2.552 MB / 0.5352 GB, free: 1.965 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.4838, allocations: 0.7752 MB / 0.5359 GB, free: 1.164 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4838, allocations: 4 kB / 0.5359 GB, free: 1.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008127/0.4846, allocations: 415 kB / 0.5363 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002898/0.4875, allocations: 0.6137 MB / 0.5369 GB, free: 124 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02603/0.5135, allocations: 16.45 MB / 0.553 GB, free: 15.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.5148, allocations: 1.657 MB / 0.5546 GB, free: 13.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001102/0.5159, allocations: 365.1 kB / 0.5549 GB, free: 13.09 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/0.5173, allocations: 1.214 MB / 0.5561 GB, free: 11.88 MB / 478.1 MB Notification: Performance of SimCode: time 1.242e-06/0.5173, allocations: 4 kB / 0.5561 GB, free: 11.88 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3182/0.8355, allocations: 61.08 MB / 0.6158 GB, free: 162.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.82/16.66, allocations: 7.484 kB / 0.6158 GB, free: 162.5 MB / 0.5137 GB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.912953311111778]