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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009354/0.0009354, allocations: 97.75 kB / 17.3 MB, free: 6.082 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.0009595/0.0009596, allocations: 180.2 kB / 18.21 MB, free: 5.391 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.344/1.344, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004313/0.0004314, allocations: 12.47 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09176/0.0922, allocations: 47.58 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01185/0.1041, allocations: 13.35 MB / 342.3 MB, free: 6.348 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02619/0.1303, allocations: 19.59 MB / 361.9 MB, free: 2.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003852/0.1342, allocations: 27.81 kB / 361.9 MB, free: 2.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003653/0.1379, allocations: 1.083 MB / 363 MB, free: 1.566 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006926/0.1449, allocations: 1.887 MB / 364.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004244/0.1491, allocations: 1.156 MB / 366.1 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009936/0.1591, allocations: 6.207 MB / 372.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007982/0.1599, allocations: 433.5 kB / 372.7 MB, free: 7.828 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001558/0.1615, allocations: 0.9365 MB / 373.6 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001207/0.1627, allocations: 1.044 MB / 374.7 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001604/0.1629, allocations: 47.94 kB / 374.7 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003672/0.1666, allocations: 1.132 MB / 375.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000299/0.1669, allocations: 293.7 kB / 376.1 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001413/0.1683, allocations: 1.368 MB / 377.5 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.165/0.3333, allocations: 3.629 MB / 381.1 MB, free: 23.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.3334, allocations: 2.125 kB / 381.1 MB, free: 23.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.968e-06/0.3334, allocations: 0 / 381.1 MB, free: 23.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001299/0.3336, allocations: 3.609 kB / 381.1 MB, free: 23.3 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.005184/0.3387, allocations: 3.231 MB / 384.4 MB, free: 21.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.3388, allocations: 9.219 kB / 384.4 MB, free: 21.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004176/0.3392, allocations: 403.4 kB / 384.8 MB, free: 21.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003854/0.3431, allocations: 2.452 MB / 387.2 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.3431, allocations: 39.86 kB / 387.3 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.3433, allocations: 56.67 kB / 387.3 MB, free: 20.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.345, allocations: 0.7504 MB / 388.1 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.345, allocations: 3.219 kB / 388.1 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.587e-05/0.3451, allocations: 22.19 kB / 388.1 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.055e-05/0.3451, allocations: 22.69 kB / 388.1 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001795/0.3469, allocations: 0.862 MB / 389 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005833/0.3528, allocations: 3.082 MB / 392.1 MB, free: 19.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.3541, allocations: 0.628 MB / 392.7 MB, free: 19.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.3551, allocations: 0.6667 MB / 393.3 MB, free: 19.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02366/0.3788, allocations: 30.22 MB / 423.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008389/0.3797, allocations: 384.7 kB / 423.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 3.256e-06/0.3797, allocations: 4 kB / 423.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002866/0.3826, allocations: 1.15 MB / 425.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.3826, allocations: 67.39 kB / 425.2 MB, free: 9.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00407/0.3867, allocations: 2.959 MB / 428.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001374/0.3869, allocations: 29.7 kB / 428.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001532/0.3884, allocations: 1.494 MB / 429.6 MB, free: 4.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/0.3886, allocations: 169.8 kB / 429.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.3888, allocations: 75.53 kB / 429.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.3889, allocations: 337.9 kB / 430.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006686/0.3896, allocations: 261.9 kB / 430.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009437/0.3906, allocations: 0.6237 MB / 431.1 MB, free: 3.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001548/0.3921, allocations: 0.9344 MB / 432 MB, free: 2.309 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.3922, allocations: 4 kB / 432 MB, free: 2.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002843/0.395, allocations: 1.272 MB / 433.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.395, allocations: 12 kB / 433.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/0.3952, allocations: 91.39 kB / 433.4 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.468e-05/0.3952, allocations: 23.94 kB / 433.4 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007343/0.396, allocations: 214.2 kB / 433.6 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.345e-05/0.396, allocations: 23.09 kB / 433.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.3974, allocations: 121 kB / 433.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.3976, allocations: 68 kB / 433.8 MB, free: 0.582 MB / 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.000834/0.3984, allocations: 429.9 kB / 434.3 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005172/0.3989, allocations: 386.6 kB / 434.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003027/0.402, allocations: 1.248 MB / 435.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.402, allocations: 11.98 kB / 435.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.402, allocations: 0 / 435.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.402, allocations: 0 / 435.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003494/0.4055, allocations: 2.14 MB / 438 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.341e-05/0.4056, allocations: 71.98 kB / 438.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004985/0.4061, allocations: 103 kB / 438.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.4061, allocations: 0 / 438.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.42e-05/0.4062, allocations: 35.98 kB / 438.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.4062, allocations: 7.938 kB / 438.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4062, allocations: 0 / 438.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.4086, allocations: 1.372 MB / 439.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007194/0.4093, allocations: 480.2 kB / 440.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002788/0.4096, allocations: 12 kB / 440.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006862/0.4103, allocations: 42.25 kB / 440.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.4104, allocations: 52.02 kB / 440.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-05/0.4105, allocations: 51.86 kB / 440.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002406/0.4129, allocations: 1.916 MB / 442.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4129, allocations: 0 / 442.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001361/0.4143, allocations: 0.5894 MB / 442.8 MB, free: 7.594 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.001105/0.4154, allocations: 0.7768 MB / 443.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.4171, allocations: 0.8514 MB / 444.4 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4171, allocations: 0 / 444.4 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000765/0.4179, allocations: 470.6 kB / 444.8 MB, free: 5.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/0.42, allocations: 496.7 kB / 445.3 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00628/0.4263, allocations: 5.278 MB / 450.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.4274, allocations: 1.673 MB / 452.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001234/0.4286, allocations: 365.3 kB / 452.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002231/0.4288, allocations: 147.4 kB / 452.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4289, allocations: 0 / 452.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of Templates: time 0.05368/0.4825, allocations: 30.11 MB / 482.9 MB, free: 15.64 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches