Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.InvertersExtendedModel,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.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_4.0.0_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.00141/0.00141, allocations: 109.2 kB / 17.17 MB, free: 6.32 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.001566/0.001566, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.18/2.18, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 42.08 kB / 300.6 MB, free: 6.324 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1378, allocations: 49.46 MB / 350.1 MB, free: 4.859 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.02381/0.1617, allocations: 15.15 MB / 365.2 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3647/0.5264, allocations: 20.95 MB / 386.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005383/0.5319, allocations: 35.56 kB / 386.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006943/0.5389, allocations: 1.104 MB / 387.3 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01792/0.5569, allocations: 1.954 MB / 389.3 MB, free: 6.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01124/0.5682, allocations: 1.211 MB / 390.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02072/0.589, allocations: 6.486 MB / 397 MB, free: 3.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001752/0.5908, allocations: 445 kB / 397.4 MB, free: 2.871 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004283/0.5951, allocations: 1.077 MB / 398.5 MB, free: 2.391 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003713/0.5989, allocations: 1.127 MB / 399.6 MB, free: 1.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008618/0.5998, allocations: 50.88 kB / 399.6 MB, free: 1.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01424/0.6141, allocations: 1.455 MB / 401.1 MB, free: 1.113 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009555/0.6151, allocations: 326.4 kB / 401.4 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00464/0.6197, allocations: 1.408 MB / 402.8 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007075/0.6269, allocations: 2.93 MB / 405.8 MB, free: 13.56 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.003e-05/0.6269, allocations: 0 / 405.8 MB, free: 13.56 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.627, allocations: 0 / 405.8 MB, free: 13.56 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001604/0.6271, allocations: 0 / 405.8 MB, free: 13.56 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.01346/0.6406, allocations: 3.827 MB / 409.6 MB, free: 9.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.189e-05/0.6407, allocations: 12.03 kB / 409.6 MB, free: 9.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001499/0.6423, allocations: 414.9 kB / 410 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008703/0.651, allocations: 2.487 MB / 412.5 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.666e-05/0.6511, allocations: 37 kB / 412.5 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004044/0.6516, allocations: 55.91 kB / 412.6 MB, free: 6.582 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00295/0.6545, allocations: 0.7342 MB / 413.3 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.6546, allocations: 0 / 413.3 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001415/0.6548, allocations: 23.98 kB / 413.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.792e-05/0.6548, allocations: 16 kB / 413.3 MB, free: 5.805 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003068/0.6579, allocations: 0.8202 MB / 414.2 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/0.6681, allocations: 3.106 MB / 417.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002194/0.6704, allocations: 0.5751 MB / 417.8 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00188/0.6723, allocations: 0.6477 MB / 418.5 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05635/0.7287, allocations: 30.13 MB / 448.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001355/0.7301, allocations: 365.5 kB / 449 MB, free: 13.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 5.35e-06/0.7301, allocations: 0 / 449 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.004362/0.7345, allocations: 1.108 MB / 450.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.738e-05/0.7346, allocations: 67.41 kB / 450.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008721/0.7433, allocations: 3.09 MB / 453.2 MB, free: 9.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001807/0.7436, allocations: 29.7 kB / 453.3 MB, free: 9.625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002246/0.7459, allocations: 1.573 MB / 454.9 MB, free: 8.043 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003916/0.7463, allocations: 169.7 kB / 455 MB, free: 7.875 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006778/0.747, allocations: 226.1 kB / 455.2 MB, free: 7.648 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.003614/0.7506, allocations: 337.9 kB / 455.6 MB, free: 7.312 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.7517, allocations: 253.8 kB / 455.8 MB, free: 7.066 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.7531, allocations: 0.6028 MB / 456.4 MB, free: 6.293 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002505/0.7557, allocations: 0.8974 MB / 457.3 MB, free: 5.227 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.835e-05/0.7557, allocations: 4 kB / 457.3 MB, free: 5.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.004642/0.7604, allocations: 1.237 MB / 458.6 MB, free: 3.977 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.371e-05/0.7604, allocations: 15.94 kB / 458.6 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001972/0.7606, allocations: 84.16 kB / 458.7 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.946e-05/0.7607, allocations: 16 kB / 458.7 MB, free: 3.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.762, allocations: 203.6 kB / 458.9 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.799e-05/0.7621, allocations: 31.47 kB / 458.9 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003416/0.7655, allocations: 107 kB / 459 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002517/0.7658, allocations: 75.94 kB / 459.1 MB, free: 3.457 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.001838/0.7676, allocations: 451.3 kB / 459.5 MB, free: 3.008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001387/0.7691, allocations: 403.1 kB / 459.9 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006329/0.7754, allocations: 1.215 MB / 461.1 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/0.7755, allocations: 4 kB / 461.1 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.7755, allocations: 3.984 kB / 461.1 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.7755, allocations: 0 / 461.1 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0112/0.7867, allocations: 2.147 MB / 463.3 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001819/0.787, allocations: 75.92 kB / 463.4 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008969/0.7879, allocations: 91.86 kB / 463.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.241e-05/0.7879, allocations: 8.062 kB / 463.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.7881, allocations: 28 kB / 463.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.123e-06/0.7881, allocations: 0 / 463.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.7881, allocations: 4 kB / 463.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00523/0.7933, allocations: 1.321 MB / 464.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002234/0.7956, allocations: 496 kB / 465.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001497/0.7971, allocations: 12 kB / 465.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002145/0.7993, allocations: 28.03 kB / 465.3 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002946/0.7996, allocations: 63.94 kB / 465.4 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001491/0.7998, allocations: 39.98 kB / 465.4 MB, free: 12.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.007048/0.8069, allocations: 2.007 MB / 467.4 MB, free: 10.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8069, allocations: 0 / 467.4 MB, free: 10.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003773/0.8107, allocations: 0.5894 MB / 468 MB, free: 10.36 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.002357/0.8131, allocations: 0.7812 MB / 468.8 MB, free: 9.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003264/0.8164, allocations: 0.8098 MB / 469.6 MB, free: 8.734 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.8164, allocations: 0 / 469.6 MB, free: 8.734 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001409/0.8178, allocations: 447.2 kB / 470.1 MB, free: 8.273 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00706/0.8249, allocations: 0.6083 MB / 470.7 MB, free: 7.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01632/0.8413, allocations: 5.471 MB / 476.1 MB, free: 2.145 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00303/0.8444, allocations: 1.706 MB / 477.8 MB, free: 420 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008375/0.8453, allocations: 155.4 kB / 478 MB, free: 264 kB / 382.1 MB Notification: Performance of SimCode: time 1.894e-06/0.8453, allocations: 0 / 478 MB, free: 264 kB / 382.1 MB Notification: Performance of Templates: time 0.1144/0.9598, allocations: 38.39 MB / 0.5043 GB, free: 10.03 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches