Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001647/0.001647, allocations: 112.4 kB / 21.19 MB, free: 0.7031 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.001571/0.001571, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 47.94 kB / 347.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.293, allocations: 49.16 MB / 396.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01196/0.305, allocations: 14.09 MB / 410.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02785/0.3328, allocations: 19.81 MB / 430.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004087/0.3369, allocations: 137.6 kB / 430.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004103/0.341, allocations: 1.218 MB / 431.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01009/0.3511, allocations: 2.329 MB / 433.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005234/0.3563, allocations: 1.403 MB / 435.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01181/0.3681, allocations: 6.393 MB / 441.7 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007332/0.3689, allocations: 269.8 kB / 442 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001959/0.3708, allocations: 1.05 MB / 443 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001761/0.3726, allocations: 1.087 MB / 444.1 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002031/0.3728, allocations: 72 kB / 444.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004251/0.377, allocations: 1.159 MB / 445.3 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004625/0.3775, allocations: 333.5 kB / 445.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001877/0.3794, allocations: 1.378 MB / 447 MB, free: 444 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00745/0.3868, allocations: 3.819 MB / 450.9 MB, free: 12.6 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.3868, allocations: 0 / 450.9 MB, free: 12.6 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3868, allocations: 0 / 450.9 MB, free: 12.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.932e-05/0.3869, allocations: 0 / 450.9 MB, free: 12.6 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006335/0.3933, allocations: 3.761 MB / 454.6 MB, free: 8.773 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.3933, allocations: 15.97 kB / 454.6 MB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001402/0.3935, allocations: 98.52 kB / 454.7 MB, free: 8.652 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005631/0.394, allocations: 417.4 kB / 455.1 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003965/0.398, allocations: 2.315 MB / 457.5 MB, free: 5.832 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.91e-05/0.398, allocations: 37 kB / 457.5 MB, free: 5.797 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.3982, allocations: 55.95 kB / 457.6 MB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.3996, allocations: 0.7382 MB / 458.3 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.3997, allocations: 4 kB / 458.3 MB, free: 4.996 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.999e-05/0.3997, allocations: 20 kB / 458.3 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.944e-05/0.3998, allocations: 27.92 kB / 458.3 MB, free: 4.949 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.4015, allocations: 0.8163 MB / 459.2 MB, free: 4.129 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00627/0.4077, allocations: 3.012 MB / 462.2 MB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.409, allocations: 0.5203 MB / 462.7 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009985/0.41, allocations: 0.5614 MB / 463.2 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0267/0.4367, allocations: 13.81 MB / 477.1 MB, free: 1.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007965/0.4375, allocations: 361.7 kB / 477.4 MB, free: 1.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.425e-06/0.4375, allocations: 0 / 477.4 MB, free: 1.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.0024/0.4399, allocations: 1.122 MB / 478.5 MB, free: 268 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.744e-05/0.44, allocations: 55.41 kB / 478.6 MB, free: 200 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003951/0.4439, allocations: 2.948 MB / 481.5 MB, free: 13.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.835e-05/0.444, allocations: 41.69 kB / 481.6 MB, free: 13.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001441/0.4454, allocations: 1.495 MB / 483.1 MB, free: 11.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/0.4456, allocations: 186.6 kB / 483.3 MB, free: 11.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003292/0.446, allocations: 230.3 kB / 483.5 MB, free: 11.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.4461, allocations: 337.9 kB / 483.8 MB, free: 10.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006057/0.4467, allocations: 237.9 kB / 484 MB, free: 10.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008974/0.4476, allocations: 0.6096 MB / 484.6 MB, free: 9.922 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.4491, allocations: 0.8896 MB / 485.5 MB, free: 8.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.4491, allocations: 7.938 kB / 485.5 MB, free: 8.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0023/0.4514, allocations: 1.247 MB / 486.8 MB, free: 7.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.4515, allocations: 8 kB / 486.8 MB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/0.4516, allocations: 83.98 kB / 486.9 MB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.539e-05/0.4516, allocations: 20 kB / 486.9 MB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007492/0.4524, allocations: 212.2 kB / 487.1 MB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-05/0.4524, allocations: 19.94 kB / 487.1 MB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.4535, allocations: 115.2 kB / 487.2 MB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.4536, allocations: 64 kB / 487.3 MB, free: 7.082 MB / 398.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.000824/0.4544, allocations: 441.3 kB / 487.7 MB, free: 6.641 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004293/0.4548, allocations: 405.5 kB / 488.1 MB, free: 6.242 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002673/0.4575, allocations: 1.194 MB / 489.3 MB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.4575, allocations: 19.92 kB / 489.3 MB, free: 5.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4575, allocations: 0 / 489.3 MB, free: 5.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.4575, allocations: 3.984 kB / 489.3 MB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003595/0.4611, allocations: 2.069 MB / 491.4 MB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001044/0.4612, allocations: 75.98 kB / 491.5 MB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004796/0.4617, allocations: 91.86 kB / 491.6 MB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.353e-06/0.4617, allocations: 4 kB / 491.6 MB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.033e-05/0.4618, allocations: 36.06 kB / 491.6 MB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.4618, allocations: 0 / 491.6 MB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.4618, allocations: 0 / 491.6 MB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002316/0.4641, allocations: 1.319 MB / 492.9 MB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009466/0.465, allocations: 419.1 kB / 493.3 MB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002977/0.4653, allocations: 12 kB / 493.4 MB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006624/0.466, allocations: 36.02 kB / 493.4 MB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.4662, allocations: 67.81 kB / 493.5 MB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.984e-05/0.4663, allocations: 39.98 kB / 493.5 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002641/0.4689, allocations: 1.916 MB / 495.4 MB, free: 14.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4689, allocations: 0 / 495.4 MB, free: 14.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001471/0.4704, allocations: 0.5969 MB / 496 MB, free: 14.26 MB / 414.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.004072/0.4744, allocations: 2.554 MB / 498.6 MB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.4761, allocations: 0.7748 MB / 499.3 MB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4761, allocations: 3.938 kB / 499.3 MB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008046/0.4769, allocations: 427 kB / 499.8 MB, free: 10.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001971/0.4789, allocations: 0.5182 MB / 0.4886 GB, free: 9.898 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02822/0.5071, allocations: 16.54 MB / 0.5047 GB, free: 8.824 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002057/0.5092, allocations: 1.665 MB / 0.5063 GB, free: 7.133 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001544/0.5107, allocations: 365.3 kB / 0.5067 GB, free: 6.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/0.5122, allocations: 1.222 MB / 0.5079 GB, free: 5.547 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5122, allocations: 0 / 0.5079 GB, free: 5.547 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3399/0.8521, allocations: 62.02 MB / 0.5684 GB, free: 149.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.97/19.82, allocations: 6.422 kB / 0.5685 GB, free: 149.4 MB / 478.1 MB " [Timeout remaining time 640] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 23.2796442611143]