Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007539/0.000754, allocations: 92.61 kB / 17.31 MB, free: 6.535 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.0008241/0.0008242, allocations: 179.2 kB / 18.21 MB, free: 5.684 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.099/1.099, allocations: 223.3 MB / 242.3 MB, free: 248 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002028/0.0002028, allocations: 11.94 kB / 302.1 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06844/0.06865, allocations: 50.4 MB / 352.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1434/0.2121, allocations: 25.64 MB / 378.1 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02027/0.2324, allocations: 22.26 MB / 400.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00196/0.2344, allocations: 56.06 kB / 400.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003005/0.2374, allocations: 1.539 MB / 402 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00747/0.2449, allocations: 2.713 MB / 404.7 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003948/0.2488, allocations: 1.355 MB / 406 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0133/0.2621, allocations: 12.42 MB / 418.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009664/0.2631, allocations: 0.8228 MB / 419.3 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002057/0.2652, allocations: 1.966 MB / 421.3 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.2669, allocations: 2.033 MB / 423.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002081/0.2671, allocations: 76 kB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003531/0.2706, allocations: 1.486 MB / 424.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003991/0.271, allocations: 0.5502 MB / 425.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001743/0.2728, allocations: 2.582 MB / 428 MB, free: 9.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003376/0.2762, allocations: 4.798 MB / 432.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2762, allocations: 0 / 432.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2762, allocations: 3.938 kB / 432.8 MB, free: 5.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.753e-05/0.2762, allocations: 0 / 432.8 MB, free: 5.137 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.006442/0.2827, allocations: 5.785 MB / 438.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.2827, allocations: 8.031 kB / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005624/0.2833, allocations: 0.7409 MB / 439.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00512/0.2884, allocations: 4.644 MB / 444 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/0.2885, allocations: 66 kB / 444 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/0.2887, allocations: 95.91 kB / 444.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001909/0.2906, allocations: 1.324 MB / 445.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.2906, allocations: 0 / 445.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.2907, allocations: 40 kB / 445.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.19e-05/0.2907, allocations: 39.97 kB / 445.5 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002204/0.293, allocations: 1.527 MB / 447.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007159/0.3001, allocations: 5.652 MB / 452.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.3016, allocations: 1.025 MB / 453.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001442/0.3031, allocations: 1.243 MB / 455 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04542/0.3485, allocations: 59.86 MB / 0.5028 GB, free: 10.6 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009083/0.3495, allocations: 0.5755 MB / 0.5033 GB, free: 10.01 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 2.504e-06/0.3495, allocations: 0 / 0.5033 GB, free: 10.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.00298/0.3525, allocations: 1.942 MB / 0.5052 GB, free: 8.059 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.3525, allocations: 63.97 kB / 0.5053 GB, free: 7.984 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005982/0.3585, allocations: 5.59 MB / 0.5107 GB, free: 2.422 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.023e-05/0.3586, allocations: 49.62 kB / 0.5108 GB, free: 2.367 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002061/0.3607, allocations: 2.939 MB / 0.5137 GB, free: 15.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.3609, allocations: 295.9 kB / 0.5139 GB, free: 15.12 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.361, allocations: 125.6 kB / 0.5141 GB, free: 14.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.34e-05/0.3611, allocations: 305.1 kB / 0.5144 GB, free: 14.69 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007716/0.3619, allocations: 423.8 kB / 0.5148 GB, free: 14.28 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.363, allocations: 1.114 MB / 0.5158 GB, free: 12.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001997/0.365, allocations: 1.65 MB / 0.5175 GB, free: 10.85 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.365, allocations: 8 kB / 0.5175 GB, free: 10.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002992/0.368, allocations: 2.246 MB / 0.5197 GB, free: 8.586 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.368, allocations: 18.5 kB / 0.5197 GB, free: 8.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001685/0.3682, allocations: 168.1 kB / 0.5198 GB, free: 8.406 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.123e-05/0.3683, allocations: 35.94 kB / 0.5199 GB, free: 8.371 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/0.3693, allocations: 367.4 kB / 0.5202 GB, free: 8.012 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.579e-05/0.3694, allocations: 47.86 kB / 0.5203 GB, free: 7.965 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.3708, allocations: 194.2 kB / 0.5205 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.371, allocations: 128 kB / 0.5206 GB, free: 7.648 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0009696/0.372, allocations: 0.7082 MB / 0.5213 GB, free: 6.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005835/0.3726, allocations: 0.7101 MB / 0.522 GB, free: 6.211 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00435/0.3769, allocations: 2.205 MB / 0.5241 GB, free: 3.996 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.3769, allocations: 11.98 kB / 0.5241 GB, free: 3.984 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3769, allocations: 0 / 0.5241 GB, free: 3.984 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.377, allocations: 3.984 kB / 0.5241 GB, free: 3.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004457/0.3814, allocations: 3.642 MB / 0.5277 GB, free: 272 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001461/0.3816, allocations: 141.4 kB / 0.5278 GB, free: 132 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1327/0.5143, allocations: 159.1 kB / 0.528 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.357e-05/0.5143, allocations: 3.219 kB / 0.528 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002173/0.5146, allocations: 57.78 kB / 0.528 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.992e-06/0.5146, allocations: 3.688 kB / 0.528 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.5146, allocations: 2.312 kB / 0.528 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003489/0.5181, allocations: 2.219 MB / 0.5302 GB, free: 153.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001165/0.5193, allocations: 0.8114 MB / 0.531 GB, free: 153.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006721/0.5199, allocations: 16.7 kB / 0.531 GB, free: 153.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.5212, allocations: 43.5 kB / 0.5311 GB, free: 153.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.5214, allocations: 97 kB / 0.5311 GB, free: 153.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.5215, allocations: 67.62 kB / 0.5312 GB, free: 153.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004589/0.5261, allocations: 3.609 MB / 0.5347 GB, free: 152.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5261, allocations: 3.125 kB / 0.5347 GB, free: 152.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001912/0.528, allocations: 1.077 MB / 0.5358 GB, free: 152.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001395/0.5294, allocations: 1.175 MB / 0.5369 GB, free: 152.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001976/0.5314, allocations: 1.473 MB / 0.5384 GB, free: 151.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5314, allocations: 4.469 kB / 0.5384 GB, free: 151.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009367/0.5324, allocations: 0.792 MB / 0.5392 GB, free: 151.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004474/0.5369, allocations: 1.124 MB / 0.5403 GB, free: 150.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008111/0.545, allocations: 9.954 MB / 0.55 GB, free: 145.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/0.5462, allocations: 2.595 MB / 0.5525 GB, free: 144.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000338/0.5466, allocations: 295.1 kB / 0.5528 GB, free: 144.5 MB / 446.1 MB Notification: Performance of SimCode: time 3.8e-07/0.5466, allocations: 0 / 0.5528 GB, free: 144.5 MB / 446.1 MB Notification: Performance of Templates: time 0.06029/0.6069, allocations: 69.55 MB / 0.6207 GB, free: 78.74 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches