Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,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.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,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.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008619/0.0008619, allocations: 95.45 kB / 17.3 MB, free: 6.344 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.0009944/0.0009946, allocations: 179.8 kB / 18.21 MB, free: 5.531 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.346/1.346, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004605/0.0004605, allocations: 11.98 kB / 281.4 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09258, allocations: 47.59 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01223/0.1049, allocations: 13.93 MB / 342.9 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02287/0.1278, allocations: 19.66 MB / 362.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002242/0.1301, allocations: 27.81 kB / 362.6 MB, free: 2.027 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003352/0.1334, allocations: 1.095 MB / 363.7 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008301/0.1418, allocations: 1.934 MB / 365.6 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004474/0.1463, allocations: 1.156 MB / 366.8 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009889/0.1562, allocations: 6.339 MB / 373.1 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008833/0.1571, allocations: 454 kB / 373.5 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001536/0.1586, allocations: 0.952 MB / 374.5 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001185/0.1598, allocations: 1.09 MB / 375.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001707/0.16, allocations: 44 kB / 375.6 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003961/0.164, allocations: 1.12 MB / 376.7 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003309/0.1643, allocations: 313.4 kB / 377 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.1658, allocations: 1.43 MB / 378.5 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1718/0.3376, allocations: 3.832 MB / 382.3 MB, free: 23.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3377, allocations: 1.375 kB / 382.3 MB, free: 23.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3377, allocations: 0 / 382.3 MB, free: 23.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.807e-05/0.3378, allocations: 0 / 382.3 MB, free: 23.96 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.00574/0.3435, allocations: 3.359 MB / 385.7 MB, free: 21.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3436, allocations: 10.75 kB / 385.7 MB, free: 21.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004804/0.3441, allocations: 414.8 kB / 386.1 MB, free: 21.76 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003907/0.348, allocations: 2.506 MB / 388.6 MB, free: 20.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.313e-05/0.3481, allocations: 38.78 kB / 388.6 MB, free: 20.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.3482, allocations: 57.19 kB / 388.7 MB, free: 20.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.3498, allocations: 0.7504 MB / 389.4 MB, free: 20.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.3498, allocations: 1.75 kB / 389.4 MB, free: 20.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.421e-05/0.3499, allocations: 21.53 kB / 389.5 MB, free: 20.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.393e-05/0.3499, allocations: 26.19 kB / 389.5 MB, free: 20.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001673/0.3516, allocations: 0.8584 MB / 390.3 MB, free: 20.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005617/0.3572, allocations: 3.138 MB / 393.5 MB, free: 20.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.3585, allocations: 0.6205 MB / 394.1 MB, free: 20.31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009859/0.3595, allocations: 0.6744 MB / 394.8 MB, free: 20.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02385/0.3834, allocations: 30.22 MB / 425 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008465/0.3843, allocations: 392 kB / 425.4 MB, free: 9.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 3.476e-06/0.3843, allocations: 0 / 425.4 MB, free: 9.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002571/0.3869, allocations: 1.183 MB / 426.6 MB, free: 8.711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.3869, allocations: 55.41 kB / 426.6 MB, free: 8.645 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003988/0.3909, allocations: 3.107 MB / 429.7 MB, free: 5.539 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.064e-05/0.391, allocations: 41.69 kB / 429.8 MB, free: 5.492 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001448/0.3925, allocations: 1.577 MB / 431.3 MB, free: 3.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.3926, allocations: 166 kB / 431.5 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.3928, allocations: 73.67 kB / 431.6 MB, free: 3.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3929, allocations: 337 kB / 431.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006597/0.3936, allocations: 271.8 kB / 432.2 MB, free: 3.074 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008406/0.3944, allocations: 0.6169 MB / 432.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001588/0.396, allocations: 0.9479 MB / 433.7 MB, free: 1.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.396, allocations: 4 kB / 433.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002375/0.3984, allocations: 1.288 MB / 435 MB, free: 0 / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.462e-05/0.3985, allocations: 8.047 kB / 435 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.3986, allocations: 80 kB / 435.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.021e-05/0.3986, allocations: 23.94 kB / 435.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007284/0.3994, allocations: 215 kB / 435.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.397e-05/0.3994, allocations: 26.64 kB / 435.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.4009, allocations: 129.3 kB / 435.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/0.401, allocations: 60 kB / 435.5 MB, free: 15.49 MB / 350.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.001067/0.4021, allocations: 454.6 kB / 436 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004765/0.4026, allocations: 400.1 kB / 436.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003189/0.4058, allocations: 1.265 MB / 437.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/0.4058, allocations: 4 kB / 437.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4058, allocations: 0 / 437.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.4058, allocations: 4 kB / 437.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003959/0.4098, allocations: 2.199 MB / 439.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.754e-05/0.4099, allocations: 70.3 kB / 439.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005123/0.4104, allocations: 107.5 kB / 440 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.4104, allocations: 0 / 440 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.07e-05/0.4105, allocations: 31.98 kB / 440.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.4105, allocations: 4 kB / 440.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.4105, allocations: 0 / 440.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002471/0.413, allocations: 1.394 MB / 441.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009728/0.414, allocations: 488 kB / 441.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003051/0.4143, allocations: 20.05 kB / 442 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007053/0.415, allocations: 35.97 kB / 442 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.4152, allocations: 66.69 kB / 442.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.956e-05/0.4153, allocations: 42.31 kB / 442.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002965/0.4183, allocations: 2.019 MB / 444.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4183, allocations: 4 kB / 444.1 MB, free: 6.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001696/0.42, allocations: 0.5973 MB / 444.7 MB, free: 6.254 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.001213/0.4212, allocations: 0.776 MB / 445.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.423, allocations: 0.8461 MB / 446.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.423, allocations: 0 / 446.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000823/0.4238, allocations: 477.5 kB / 446.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002758/0.4266, allocations: 0.4984 MB / 447.3 MB, free: 3.816 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007656/0.4343, allocations: 5.524 MB / 452.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/0.4355, allocations: 1.718 MB / 454.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001412/0.4369, allocations: 361.4 kB / 454.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002559/0.4372, allocations: 159.4 kB / 455.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4372, allocations: 0 / 455.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of Templates: time 0.05644/0.4936, allocations: 30.88 MB / 485.9 MB, free: 13.23 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches