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) 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 4.0.0+maint.om/package.mo", uses=false) 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: 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_4.0.0_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_4.0.0_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.001436/0.001436, allocations: 112.5 kB / 17.68 MB, free: 5.496 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.001619/0.001619, allocations: 190.9 kB / 18.62 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 55.27 kB / 302 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09597/0.09703, allocations: 49.43 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01354/0.1106, allocations: 14.71 MB / 366.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1975/0.3082, allocations: 20.68 MB / 386.9 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002592/0.3108, allocations: 89.62 kB / 387 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003622/0.3145, allocations: 1.226 MB / 388.2 MB, free: 7.051 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008655/0.3232, allocations: 2.295 MB / 390.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006611/0.3299, allocations: 1.445 MB / 391.9 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.3402, allocations: 6.486 MB / 398.4 MB, free: 2.305 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008221/0.341, allocations: 454.8 kB / 398.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00193/0.343, allocations: 1.085 MB / 399.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001597/0.3446, allocations: 1.111 MB / 401.1 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001816/0.3448, allocations: 75.12 kB / 401.1 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004994/0.3498, allocations: 1.475 MB / 402.6 MB, free: 272 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003296/0.3501, allocations: 331.2 kB / 402.9 MB, free: 4 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002062/0.3522, allocations: 1.364 MB / 404.3 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005951/0.3582, allocations: 3.772 MB / 408.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.3582, allocations: 4 kB / 408.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3582, allocations: 0 / 408.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.291e-05/0.3583, allocations: 0 / 408.1 MB, free: 11.66 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.005312/0.3636, allocations: 3.674 MB / 411.7 MB, free: 7.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/0.3637, allocations: 8.031 kB / 411.7 MB, free: 7.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004186/0.3641, allocations: 399.2 kB / 412.1 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003364/0.3675, allocations: 2.414 MB / 414.6 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.087e-05/0.3675, allocations: 40.94 kB / 414.6 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.3677, allocations: 56 kB / 414.6 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.369, allocations: 0.7304 MB / 415.4 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.369, allocations: 7.922 kB / 415.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.3691, allocations: 20 kB / 415.4 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.905e-05/0.3691, allocations: 19.98 kB / 415.4 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.3706, allocations: 0.8163 MB / 416.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005094/0.3757, allocations: 3.04 MB / 419.3 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.3769, allocations: 0.5751 MB / 419.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009487/0.3778, allocations: 0.6524 MB / 420.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02911/0.407, allocations: 30.12 MB / 450.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007389/0.4077, allocations: 361.4 kB / 451 MB, free: 12.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.765e-06/0.4078, allocations: 0 / 451 MB, free: 12.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002243/0.41, allocations: 1.097 MB / 452.1 MB, free: 11.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.4101, allocations: 59.39 kB / 452.1 MB, free: 11.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00416/0.4142, allocations: 2.935 MB / 455.1 MB, free: 8.246 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.465e-05/0.4143, allocations: 33.7 kB / 455.1 MB, free: 8.207 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001297/0.4156, allocations: 1.493 MB / 456.6 MB, free: 6.703 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.4158, allocations: 161.7 kB / 456.8 MB, free: 6.543 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000352/0.4162, allocations: 226.1 kB / 457 MB, free: 6.316 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4163, allocations: 341.9 kB / 457.3 MB, free: 5.977 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005814/0.4169, allocations: 245.9 kB / 457.5 MB, free: 5.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007882/0.4177, allocations: 0.602 MB / 458.1 MB, free: 4.957 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.4192, allocations: 0.8896 MB / 459 MB, free: 3.895 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.267e-05/0.4192, allocations: 5.938 kB / 459 MB, free: 3.891 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002169/0.4214, allocations: 1.222 MB / 460.3 MB, free: 2.664 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.4214, allocations: 19.94 kB / 460.3 MB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001088/0.4215, allocations: 83.98 kB / 460.4 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.133e-05/0.4215, allocations: 16 kB / 460.4 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007085/0.4223, allocations: 203.6 kB / 460.6 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.251e-05/0.4223, allocations: 19.94 kB / 460.6 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.4233, allocations: 118.9 kB / 460.7 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.4234, allocations: 64 kB / 460.8 MB, free: 2.148 MB / 366.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.0006742/0.4241, allocations: 430.3 kB / 461.2 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004673/0.4246, allocations: 383.3 kB / 461.6 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/0.4272, allocations: 1.207 MB / 462.8 MB, free: 120 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.4272, allocations: 4 kB / 462.8 MB, free: 116 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4272, allocations: 3.938 kB / 462.8 MB, free: 112 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.4273, allocations: 3.984 kB / 462.8 MB, free: 108 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003664/0.4309, allocations: 2.092 MB / 464.9 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.924e-05/0.431, allocations: 68 kB / 465 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004756/0.4315, allocations: 99.91 kB / 465 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/0.4315, allocations: 7.438 kB / 465.1 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-05/0.4316, allocations: 32 kB / 465.1 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.4316, allocations: 0 / 465.1 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.4316, allocations: 4 kB / 465.1 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.4339, allocations: 1.29 MB / 466.4 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000895/0.4348, allocations: 480.3 kB / 466.8 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004141/0.4352, allocations: 15.98 kB / 466.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008218/0.436, allocations: 35.91 kB / 466.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.4362, allocations: 55.95 kB / 467 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.278e-05/0.4363, allocations: 39.98 kB / 467 MB, free: 11.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002783/0.4391, allocations: 1.903 MB / 468.9 MB, free: 9.883 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4391, allocations: 0 / 468.9 MB, free: 9.883 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00137/0.4405, allocations: 0.5854 MB / 469.5 MB, free: 9.297 MB / 382.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.001149/0.4416, allocations: 0.7788 MB / 470.3 MB, free: 8.512 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.4433, allocations: 0.8098 MB / 471.1 MB, free: 7.672 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4433, allocations: 0 / 471.1 MB, free: 7.672 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007654/0.4441, allocations: 447.1 kB / 471.5 MB, free: 7.211 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/0.4465, allocations: 0.6056 MB / 472.1 MB, free: 6.602 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006476/0.453, allocations: 4.293 MB / 476.4 MB, free: 2.273 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001409/0.4545, allocations: 1.657 MB / 478.1 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001117/0.4556, allocations: 361.1 kB / 478.4 MB, free: 236 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000292/0.4559, allocations: 147.4 kB / 478.6 MB, free: 88 kB / 382.1 MB Notification: Performance of SimCode: time 6.22e-07/0.4559, allocations: 0 / 478.6 MB, free: 88 kB / 382.1 MB Notification: Performance of Templates: time 0.05652/0.5124, allocations: 31.09 MB / 0.4977 GB, free: 1.309 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches