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.001405/0.001405, allocations: 115.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 60.09 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2716, allocations: 50.55 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01347/0.2851, allocations: 14.71 MB / 424.6 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02448/0.3097, allocations: 20.7 MB / 445.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003537/0.3132, allocations: 87.25 kB / 445.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003836/0.3171, allocations: 1.234 MB / 446.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007855/0.325, allocations: 2.305 MB / 449 MB, free: 10.4 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004809/0.3299, allocations: 1.439 MB / 450.4 MB, free: 8.953 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01013/0.34, allocations: 6.567 MB / 457 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008622/0.3409, allocations: 457.1 kB / 457.4 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001726/0.3427, allocations: 1.1 MB / 458.5 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.344, allocations: 1.118 MB / 459.6 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002107/0.3442, allocations: 76 kB / 459.7 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003926/0.3482, allocations: 1.479 MB / 461.2 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004186/0.3486, allocations: 329.6 kB / 461.5 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001573/0.3502, allocations: 1.362 MB / 462.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005571/0.3558, allocations: 3.775 MB / 466.6 MB, free: 8.621 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3558, allocations: 4 kB / 466.6 MB, free: 8.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3558, allocations: 3.938 kB / 466.6 MB, free: 8.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.182e-05/0.3559, allocations: 0 / 466.6 MB, free: 8.613 MB / 382.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.005144/0.361, allocations: 3.67 MB / 470.3 MB, free: 4.863 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.3611, allocations: 12.03 kB / 470.3 MB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004295/0.3615, allocations: 391.2 kB / 470.7 MB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003448/0.365, allocations: 2.425 MB / 473.1 MB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.252e-05/0.365, allocations: 40.94 kB / 473.2 MB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.3652, allocations: 48 kB / 473.2 MB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.3666, allocations: 0.7265 MB / 474 MB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.3666, allocations: 0 / 474 MB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.422e-05/0.3667, allocations: 27.92 kB / 474 MB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.3667, allocations: 20 kB / 474 MB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.3682, allocations: 0.8202 MB / 474.8 MB, free: 284 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00511/0.3734, allocations: 3.043 MB / 477.9 MB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.3746, allocations: 0.579 MB / 478.4 MB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.3756, allocations: 0.6437 MB / 479.1 MB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02795/0.4036, allocations: 30.74 MB / 0.4979 GB, free: 8.914 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007477/0.4044, allocations: 361.6 kB / 0.4982 GB, free: 8.551 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.467e-06/0.4044, allocations: 0 / 0.4982 GB, free: 8.551 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.00224/0.4067, allocations: 1.097 MB / 0.4993 GB, free: 7.441 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.4067, allocations: 59.41 kB / 0.4994 GB, free: 7.371 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003337/0.4101, allocations: 2.939 MB / 0.5022 GB, free: 4.422 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.037e-05/0.4101, allocations: 33.7 kB / 0.5023 GB, free: 4.383 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/0.4113, allocations: 1.489 MB / 0.5037 GB, free: 2.883 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.4115, allocations: 161.7 kB / 0.5039 GB, free: 2.723 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002757/0.4118, allocations: 226.1 kB / 0.5041 GB, free: 2.496 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.4119, allocations: 341.9 kB / 0.5044 GB, free: 2.156 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005649/0.4124, allocations: 245.9 kB / 0.5046 GB, free: 1.918 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007752/0.4132, allocations: 0.5981 MB / 0.5052 GB, free: 1.141 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.4146, allocations: 0.8896 MB / 0.5061 GB, free: 80 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.4146, allocations: 11.94 kB / 0.5061 GB, free: 68 kB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002178/0.4168, allocations: 1.23 MB / 0.5073 GB, free: 14.83 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.4169, allocations: 22.78 kB / 0.5073 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001083/0.417, allocations: 83.98 kB / 0.5074 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.041e-05/0.417, allocations: 16 kB / 0.5074 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007059/0.4177, allocations: 199.6 kB / 0.5076 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.302e-05/0.4178, allocations: 23.92 kB / 0.5076 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.4188, allocations: 114.9 kB / 0.5077 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.4189, allocations: 68 kB / 0.5078 GB, free: 14.32 MB / 446.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.0007539/0.4196, allocations: 437.3 kB / 0.5082 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003819/0.42, allocations: 379.4 kB / 0.5086 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002598/0.4226, allocations: 1.194 MB / 0.5098 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.4227, allocations: 4 kB / 0.5098 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4227, allocations: 0 / 0.5098 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.4227, allocations: 3.984 kB / 0.5098 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003104/0.4258, allocations: 2.1 MB / 0.5118 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.441e-05/0.4259, allocations: 68 kB / 0.5119 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004882/0.4264, allocations: 91.97 kB / 0.512 GB, free: 9.961 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.4264, allocations: 11.94 kB / 0.512 GB, free: 9.949 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.247e-05/0.4265, allocations: 32 kB / 0.512 GB, free: 9.918 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.4265, allocations: 3.938 kB / 0.512 GB, free: 9.914 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4265, allocations: 4 kB / 0.512 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002227/0.4287, allocations: 1.293 MB / 0.5133 GB, free: 8.586 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006536/0.4294, allocations: 468.3 kB / 0.5137 GB, free: 8.105 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002939/0.4297, allocations: 20.05 kB / 0.5137 GB, free: 8.086 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006926/0.4304, allocations: 27.97 kB / 0.5138 GB, free: 8.059 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.4306, allocations: 59.89 kB / 0.5138 GB, free: 8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-05/0.4306, allocations: 39.98 kB / 0.5139 GB, free: 7.961 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002325/0.433, allocations: 1.911 MB / 0.5157 GB, free: 6.051 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.433, allocations: 0 / 0.5157 GB, free: 6.051 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001226/0.4342, allocations: 0.5816 MB / 0.5163 GB, free: 5.469 MB / 446.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.001074/0.4353, allocations: 0.7739 MB / 0.5171 GB, free: 4.688 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.4369, allocations: 0.8062 MB / 0.5178 GB, free: 3.855 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4369, allocations: 0 / 0.5178 GB, free: 3.855 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000762/0.4377, allocations: 447.1 kB / 0.5183 GB, free: 3.395 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/0.4402, allocations: 0.619 MB / 0.5189 GB, free: 2.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005921/0.4461, allocations: 4.361 MB / 0.5231 GB, free: 14.37 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/0.4472, allocations: 1.661 MB / 0.5248 GB, free: 12.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/0.4475, allocations: 151.4 kB / 0.5249 GB, free: 12.53 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4475, allocations: 3.938 kB / 0.5249 GB, free: 12.53 MB / 462.1 MB Notification: Performance of Templates: time 0.2244/0.6719, allocations: 37.67 MB / 0.5617 GB, free: 113.5 MB / 462.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) Reference file matches