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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001445/0.001445, allocations: 187.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.4/1.4, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001438, allocations: 48.16 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1032, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01561/0.1188, allocations: 14.02 MB / 341.4 MB, free: 6.301 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02826/0.1472, allocations: 19.73 MB / 361.1 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00338/0.1506, allocations: 31.81 kB / 361.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003957/0.1547, allocations: 1.213 MB / 362.4 MB, free: 1.238 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009252/0.164, allocations: 2.262 MB / 364.6 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005985/0.17, allocations: 1.392 MB / 366 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01049/0.1805, allocations: 6.31 MB / 372.3 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008535/0.1814, allocations: 469.1 kB / 372.8 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001368/0.1828, allocations: 0.9756 MB / 373.8 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001409/0.1842, allocations: 1.075 MB / 374.8 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002568/0.1845, allocations: 84 kB / 374.9 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003928/0.1884, allocations: 1.159 MB / 376.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004094/0.1888, allocations: 337.6 kB / 376.4 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001737/0.1906, allocations: 1.386 MB / 377.8 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1929/0.3835, allocations: 3.753 MB / 381.5 MB, free: 24.7 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.358e-06/0.3835, allocations: 0 / 381.5 MB, free: 24.7 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3835, allocations: 0 / 381.5 MB, free: 24.7 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001429/0.3837, allocations: 2.125 kB / 381.5 MB, free: 24.7 MB / 318.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.008773/0.3925, allocations: 3.71 MB / 385.3 MB, free: 22.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.3925, allocations: 9.812 kB / 385.3 MB, free: 22.61 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001428/0.3927, allocations: 99.62 kB / 385.4 MB, free: 22.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007116/0.3934, allocations: 397.7 kB / 385.8 MB, free: 22.37 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004472/0.3979, allocations: 2.456 MB / 388.2 MB, free: 21.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.267e-05/0.398, allocations: 34.19 kB / 388.2 MB, free: 21.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/0.3981, allocations: 51.12 kB / 388.3 MB, free: 21.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.3998, allocations: 0.7315 MB / 389 MB, free: 21.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.3998, allocations: 2.094 kB / 389 MB, free: 21.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.233e-05/0.3999, allocations: 19.73 kB / 389 MB, free: 21.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.682e-05/0.3999, allocations: 20.77 kB / 389.1 MB, free: 21.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.4015, allocations: 0.8232 MB / 389.9 MB, free: 21.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005651/0.4072, allocations: 3.06 MB / 392.9 MB, free: 20.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.4083, allocations: 0.579 MB / 393.5 MB, free: 20.94 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009104/0.4092, allocations: 0.6505 MB / 394.2 MB, free: 20.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02321/0.4325, allocations: 30.18 MB / 424.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007464/0.4332, allocations: 367.1 kB / 424.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.755e-06/0.4333, allocations: 0 / 424.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002584/0.4359, allocations: 1.107 MB / 425.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.4359, allocations: 55.41 kB / 425.9 MB, free: 9.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003668/0.4396, allocations: 2.948 MB / 428.8 MB, free: 6.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.51e-05/0.4397, allocations: 41.69 kB / 428.9 MB, free: 6.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.441, allocations: 1.497 MB / 430.4 MB, free: 4.773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.4412, allocations: 166.5 kB / 430.5 MB, free: 4.613 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003126/0.4415, allocations: 226.1 kB / 430.7 MB, free: 4.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.4416, allocations: 337.9 kB / 431.1 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006026/0.4422, allocations: 241.9 kB / 431.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007953/0.443, allocations: 0.6086 MB / 431.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.4445, allocations: 0.8975 MB / 432.8 MB, free: 2.031 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.4445, allocations: 0 / 432.8 MB, free: 2.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002294/0.4468, allocations: 1.231 MB / 434 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.4469, allocations: 8 kB / 434.1 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/0.447, allocations: 87.92 kB / 434.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.118e-05/0.447, allocations: 20.88 kB / 434.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007393/0.4478, allocations: 204.3 kB / 434.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.848e-05/0.4478, allocations: 22.56 kB / 434.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001759/0.4496, allocations: 113.5 kB / 434.5 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.4497, allocations: 64 kB / 434.6 MB, free: 388 kB / 334.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.000947/0.4507, allocations: 429.9 kB / 435 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005163/0.4512, allocations: 387.3 kB / 435.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00303/0.4542, allocations: 1.201 MB / 436.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.4543, allocations: 12 kB / 436.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.4543, allocations: 2.938 kB / 436.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.4543, allocations: 3.984 kB / 436.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003956/0.4583, allocations: 2.095 MB / 438.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.361e-05/0.4584, allocations: 75.98 kB / 438.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004674/0.4588, allocations: 87.11 kB / 438.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.4589, allocations: 0 / 438.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-05/0.4589, allocations: 40.06 kB / 438.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.4589, allocations: 3.984 kB / 438.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.459, allocations: 3.281 kB / 438.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.4612, allocations: 1.3 MB / 440.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000926/0.4622, allocations: 480.2 kB / 440.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003221/0.4625, allocations: 8 kB / 440.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006685/0.4632, allocations: 32.03 kB / 440.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.4634, allocations: 63.94 kB / 440.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.53e-05/0.4635, allocations: 39.19 kB / 440.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002801/0.4663, allocations: 1.916 MB / 442.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.4663, allocations: 0 / 442.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001666/0.4679, allocations: 0.5917 MB / 443.3 MB, free: 7.574 MB / 350.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.003703/0.4717, allocations: 2.55 MB / 445.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.4735, allocations: 0.8274 MB / 446.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4736, allocations: 4 kB / 446.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007536/0.4743, allocations: 442.6 kB / 447.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/0.4767, allocations: 0.5211 MB / 447.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03179/0.5085, allocations: 21.18 MB / 468.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001322/0.5098, allocations: 1.669 MB / 470.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001491/0.5113, allocations: 357.3 kB / 470.8 MB, free: 10.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00135/0.5127, allocations: 1.226 MB / 472 MB, free: 8.902 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5127, allocations: 0 / 472 MB, free: 8.902 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1102/0.6229, allocations: 60.45 MB / 0.52 GB, free: 12.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.019/9.642, allocations: 3.75 kB / 0.52 GB, free: 12.38 MB / 446.1 MB (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 --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) 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) Reference file matches