Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 120.7 kB / 17.79 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 186.9 kB / 20.73 MB, free: 2.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 225.6 MB / 249.1 MB, free: 3.578 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 59.91 kB / 365.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1045, allocations: 52.13 MB / 417.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01495/0.1194, allocations: 14.76 MB / 432.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.232/0.3514, allocations: 20.73 MB / 453.3 MB, free: 6.801 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002095/0.3535, allocations: 91.25 kB / 453.3 MB, free: 6.801 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003241/0.3568, allocations: 1.242 MB / 454.6 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007095/0.3639, allocations: 2.326 MB / 456.9 MB, free: 6.133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004702/0.3686, allocations: 1.44 MB / 458.4 MB, free: 5.762 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01022/0.3788, allocations: 6.51 MB / 464.9 MB, free: 4.695 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007123/0.3795, allocations: 270 kB / 465.1 MB, free: 4.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002021/0.3815, allocations: 1.103 MB / 466.2 MB, free: 4.285 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001493/0.383, allocations: 1.105 MB / 467.3 MB, free: 3.848 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002196/0.3832, allocations: 79.62 kB / 467.4 MB, free: 3.844 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004478/0.3877, allocations: 1.479 MB / 468.9 MB, free: 3.777 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005395/0.3883, allocations: 331.7 kB / 469.2 MB, free: 3.637 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002145/0.3904, allocations: 1.367 MB / 470.6 MB, free: 2.801 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006478/0.3969, allocations: 3.788 MB / 474.4 MB, free: 1.445 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3969, allocations: 5.188 kB / 474.4 MB, free: 1.441 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3969, allocations: 2.812 kB / 474.4 MB, free: 1.441 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.786e-05/0.397, allocations: 3.938 kB / 474.4 MB, free: 1.438 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.006293/0.4033, allocations: 3.805 MB / 478.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.4033, allocations: 9.625 kB / 478.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001374/0.4034, allocations: 96.16 kB / 478.3 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005402/0.404, allocations: 417.1 kB / 478.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003943/0.4079, allocations: 2.446 MB / 481.1 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.408, allocations: 37.03 kB / 481.2 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.4081, allocations: 53.58 kB / 481.2 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.4095, allocations: 0.7388 MB / 482 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.4096, allocations: 0 / 482 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.454e-05/0.4096, allocations: 16.38 kB / 482 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.417e-05/0.4096, allocations: 25.98 kB / 482 MB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.4112, allocations: 0.8152 MB / 482.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005932/0.4171, allocations: 3.053 MB / 485.9 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.4182, allocations: 0.5183 MB / 486.4 MB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008738/0.4191, allocations: 0.5608 MB / 487 MB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03399/0.4531, allocations: 30.12 MB / 0.505 GB, free: 8.789 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007513/0.4538, allocations: 369.6 kB / 0.5053 GB, free: 8.418 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.214e-06/0.4538, allocations: 0 / 0.5053 GB, free: 8.418 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002407/0.4562, allocations: 1.106 MB / 0.5064 GB, free: 7.301 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/0.4563, allocations: 61.59 kB / 0.5065 GB, free: 7.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0039/0.4602, allocations: 2.935 MB / 0.5093 GB, free: 4.285 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.4603, allocations: 37.7 kB / 0.5094 GB, free: 4.242 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001374/0.4617, allocations: 1.493 MB / 0.5108 GB, free: 2.742 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.4619, allocations: 176.5 kB / 0.511 GB, free: 2.574 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003231/0.4622, allocations: 230.3 kB / 0.5112 GB, free: 2.344 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.4624, allocations: 341.9 kB / 0.5115 GB, free: 2.004 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005782/0.463, allocations: 241.9 kB / 0.5118 GB, free: 1.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000857/0.4638, allocations: 0.6059 MB / 0.5124 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/0.4653, allocations: 0.894 MB / 0.5132 GB, free: 15.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.4653, allocations: 4 kB / 0.5132 GB, free: 15.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002388/0.4677, allocations: 1.238 MB / 0.5144 GB, free: 14.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.4677, allocations: 15.98 kB / 0.5145 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/0.4678, allocations: 87.77 kB / 0.5145 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.033e-05/0.4678, allocations: 20.06 kB / 0.5146 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006995/0.4685, allocations: 199.7 kB / 0.5148 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.232e-05/0.4686, allocations: 31.86 kB / 0.5148 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.4699, allocations: 104 kB / 0.5149 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.47, allocations: 68 kB / 0.5149 GB, free: 14.17 MB / 430.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.0007548/0.4707, allocations: 430.1 kB / 0.5154 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004502/0.4712, allocations: 405.4 kB / 0.5157 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002605/0.4738, allocations: 1.197 MB / 0.5169 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.4738, allocations: 8 kB / 0.5169 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.4738, allocations: 3.984 kB / 0.5169 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.4738, allocations: 1.688 kB / 0.5169 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00432/0.4781, allocations: 2.099 MB / 0.519 GB, free: 9.977 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001005/0.4782, allocations: 68 kB / 0.519 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004637/0.4787, allocations: 99.84 kB / 0.5191 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.4787, allocations: 3.938 kB / 0.5191 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.364e-05/0.4788, allocations: 36.06 kB / 0.5192 GB, free: 9.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.4788, allocations: 5.5 kB / 0.5192 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4788, allocations: 0 / 0.5192 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002522/0.4813, allocations: 1.315 MB / 0.5205 GB, free: 8.43 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001303/0.4826, allocations: 498.4 kB / 0.5209 GB, free: 7.922 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003113/0.4829, allocations: 11.98 kB / 0.5209 GB, free: 7.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006523/0.4835, allocations: 28.03 kB / 0.521 GB, free: 7.883 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/0.4837, allocations: 63.94 kB / 0.521 GB, free: 7.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.199e-05/0.4838, allocations: 36 kB / 0.5211 GB, free: 7.785 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002685/0.4865, allocations: 1.907 MB / 0.5229 GB, free: 5.879 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4865, allocations: 0 / 0.5229 GB, free: 5.879 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001634/0.4881, allocations: 0.5813 MB / 0.5235 GB, free: 5.297 MB / 430.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.003635/0.4917, allocations: 2.565 MB / 0.526 GB, free: 2.852 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.4933, allocations: 0.7787 MB / 0.5268 GB, free: 2.047 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4933, allocations: 0 / 0.5268 GB, free: 2.047 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007477/0.4941, allocations: 422.9 kB / 0.5272 GB, free: 1.609 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002629/0.4967, allocations: 0.6087 MB / 0.5278 GB, free: 1.008 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02561/0.5223, allocations: 16.44 MB / 0.5438 GB, free: 48 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001328/0.5236, allocations: 1.668 MB / 0.5455 GB, free: 14.35 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.5248, allocations: 357.1 kB / 0.5458 GB, free: 14 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001278/0.5261, allocations: 1.21 MB / 0.547 GB, free: 12.79 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5261, allocations: 3.938 kB / 0.547 GB, free: 12.78 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1136/0.6397, allocations: 61.04 MB / 0.6066 GB, free: 124 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.08/16.72, allocations: 5.562 kB / 0.6066 GB, free: 120 kB / 0.4981 GB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 20.06131131015718]