Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007883/0.0007884, allocations: 95.25 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008476/0.0008478, allocations: 206.3 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.7 MB / 247.5 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002869, allocations: 8 kB / 308.4 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1048, allocations: 51.52 MB / 359.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1881/0.2929, allocations: 14.02 MB / 373.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02579/0.3187, allocations: 20.63 MB / 394.5 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003092/0.3219, allocations: 30.69 kB / 394.6 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004613/0.3265, allocations: 1.102 MB / 395.7 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009498/0.336, allocations: 1.927 MB / 397.6 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006166/0.3422, allocations: 1.204 MB / 398.8 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01091/0.3532, allocations: 6.43 MB / 405.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008716/0.3541, allocations: 433.4 kB / 405.7 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00161/0.3557, allocations: 1.035 MB / 406.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001169/0.3569, allocations: 1.074 MB / 407.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001631/0.3571, allocations: 44.06 kB / 407.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005121/0.3622, allocations: 1.46 MB / 409.3 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006572/0.3629, allocations: 295.9 kB / 409.6 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002353/0.3653, allocations: 1.364 MB / 410.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002894/0.3682, allocations: 2.703 MB / 413.6 MB, free: 5.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3682, allocations: 0 / 413.6 MB, free: 5.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3682, allocations: 0 / 413.6 MB, free: 5.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.608e-05/0.3683, allocations: 0 / 413.6 MB, free: 5.934 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.00463/0.3729, allocations: 3.225 MB / 416.9 MB, free: 2.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.373, allocations: 8.031 kB / 416.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004948/0.3735, allocations: 399.1 kB / 417.3 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003428/0.3769, allocations: 2.433 MB / 419.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.665e-05/0.377, allocations: 37 kB / 419.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.3771, allocations: 55.89 kB / 419.8 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.3785, allocations: 0.75 MB / 420.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3785, allocations: 0 / 420.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.717e-05/0.3786, allocations: 16 kB / 420.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.3786, allocations: 23.98 kB / 420.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.3802, allocations: 0.8554 MB / 421.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004957/0.3851, allocations: 3.071 MB / 424.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.3865, allocations: 0.622 MB / 425.1 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/0.3876, allocations: 0.667 MB / 425.8 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02864/0.4162, allocations: 30.79 MB / 456.6 MB, free: 6.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007739/0.417, allocations: 385.6 kB / 456.9 MB, free: 6.086 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.775e-06/0.417, allocations: 0 / 456.9 MB, free: 6.086 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002543/0.4196, allocations: 1.155 MB / 458.1 MB, free: 4.926 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.4197, allocations: 67.39 kB / 458.2 MB, free: 4.848 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004429/0.4241, allocations: 2.931 MB / 461.1 MB, free: 1.906 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001173/0.4242, allocations: 33.7 kB / 461.1 MB, free: 1.867 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001379/0.4256, allocations: 1.485 MB / 462.6 MB, free: 380 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002278/0.4259, allocations: 169.7 kB / 462.8 MB, free: 208 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.426, allocations: 73.67 kB / 462.9 MB, free: 128 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.4261, allocations: 341.9 kB / 463.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006554/0.4268, allocations: 261.9 kB / 463.4 MB, free: 15.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008363/0.4276, allocations: 0.6293 MB / 464.1 MB, free: 14.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.4292, allocations: 0.9404 MB / 465 MB, free: 13.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.145e-05/0.4292, allocations: 3.938 kB / 465 MB, free: 13.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002327/0.4315, allocations: 1.264 MB / 466.3 MB, free: 12.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.4316, allocations: 8.938 kB / 466.3 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/0.4317, allocations: 83.98 kB / 466.4 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.801e-05/0.4317, allocations: 20 kB / 466.4 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007229/0.4324, allocations: 221.7 kB / 466.6 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.573e-05/0.4325, allocations: 19.94 kB / 466.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.4336, allocations: 123.1 kB / 466.7 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.4338, allocations: 67.94 kB / 466.8 MB, free: 11.8 MB / 382.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.0008919/0.4347, allocations: 436.9 kB / 467.2 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005675/0.4352, allocations: 375.4 kB / 467.6 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003225/0.4385, allocations: 1.24 MB / 468.8 MB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.4385, allocations: 8 kB / 468.9 MB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.4385, allocations: 3.938 kB / 468.9 MB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.4385, allocations: 7.984 kB / 468.9 MB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003887/0.4424, allocations: 2.132 MB / 471 MB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.945e-05/0.4425, allocations: 72 kB / 471.1 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005206/0.4431, allocations: 103.9 kB / 471.2 MB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.4431, allocations: 4 kB / 471.2 MB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-05/0.4432, allocations: 35.98 kB / 471.2 MB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.4432, allocations: 0 / 471.2 MB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4432, allocations: 4 kB / 471.2 MB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002498/0.4457, allocations: 1.359 MB / 472.6 MB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007869/0.4465, allocations: 477.1 kB / 473 MB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000436/0.4469, allocations: 12.06 kB / 473.1 MB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008213/0.4478, allocations: 39.95 kB / 473.1 MB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.4479, allocations: 63.89 kB / 473.2 MB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.3e-05/0.448, allocations: 39.98 kB / 473.2 MB, free: 5.285 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002888/0.4509, allocations: 1.907 MB / 475.1 MB, free: 3.379 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4509, allocations: 0 / 475.1 MB, free: 3.379 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00143/0.4524, allocations: 0.5816 MB / 475.7 MB, free: 2.797 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.001179/0.4536, allocations: 0.7773 MB / 476.5 MB, free: 2.012 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.4553, allocations: 0.853 MB / 477.3 MB, free: 1.133 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4553, allocations: 3.938 kB / 477.3 MB, free: 1.129 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000777/0.4561, allocations: 467.2 kB / 477.8 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/0.4591, allocations: 0.5785 MB / 478.3 MB, free: 68 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007312/0.4665, allocations: 5.311 MB / 483.7 MB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001286/0.4678, allocations: 1.661 MB / 485.3 MB, free: 9.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003215/0.4681, allocations: 155.4 kB / 485.5 MB, free: 8.867 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4681, allocations: 0 / 485.5 MB, free: 8.867 MB / 398.1 MB Notification: Performance of Templates: time 0.05873/0.5269, allocations: 37.04 MB / 0.5103 GB, free: 3.895 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp1.S.v,mp2.S.v,v.p.v Variables in the result:mp1.S.v,mp2.S.v,time,v.p.v