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.001638/0.001638, allocations: 112 kB / 17.68 MB, free: 5.332 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.002306/0.002306, allocations: 190.9 kB / 18.62 MB, free: 4.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 1.368/1.368, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 45.42 kB / 302 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0846/0.08562, allocations: 49.44 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0144/0.1001, allocations: 15.31 MB / 366.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1819/0.282, allocations: 20.74 MB / 387.5 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00264/0.2847, allocations: 88.81 kB / 387.6 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003597/0.2883, allocations: 1.261 MB / 388.9 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009797/0.2981, allocations: 2.34 MB / 391.2 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006609/0.3048, allocations: 1.44 MB / 392.7 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01023/0.315, allocations: 6.614 MB / 399.3 MB, free: 1.582 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008452/0.3159, allocations: 471.2 kB / 399.7 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001778/0.3177, allocations: 1.111 MB / 400.9 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001138/0.3189, allocations: 1.15 MB / 402 MB, free: 128 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001603/0.319, allocations: 75.22 kB / 402.1 MB, free: 128 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004412/0.3235, allocations: 1.473 MB / 403.5 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003208/0.3238, allocations: 338.2 kB / 403.9 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001324/0.3251, allocations: 1.428 MB / 405.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004515/0.3296, allocations: 3.977 MB / 409.3 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.3297, allocations: 0 / 409.3 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3297, allocations: 0 / 409.3 MB, free: 10.42 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.297e-05/0.3297, allocations: 0 / 409.3 MB, free: 10.42 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.005322/0.3351, allocations: 3.826 MB / 413.1 MB, free: 6.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.3351, allocations: 12.03 kB / 413.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004104/0.3355, allocations: 410.9 kB / 413.5 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003337/0.3389, allocations: 2.463 MB / 416 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.063e-05/0.3389, allocations: 37 kB / 416 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.3391, allocations: 59.89 kB / 416.1 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.3403, allocations: 0.7343 MB / 416.8 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.3404, allocations: 0 / 416.8 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.387e-05/0.3404, allocations: 19.94 kB / 416.8 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.3405, allocations: 23.98 kB / 416.9 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.342, allocations: 0.8124 MB / 417.7 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005068/0.347, allocations: 3.09 MB / 420.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.3482, allocations: 0.579 MB / 421.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009358/0.3491, allocations: 0.6477 MB / 422 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02835/0.3775, allocations: 30.13 MB / 452.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007132/0.3783, allocations: 390.1 kB / 452.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/0.3783, allocations: 0 / 452.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002142/0.3804, allocations: 1.097 MB / 453.6 MB, free: 9.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.3805, allocations: 63.41 kB / 453.7 MB, free: 9.656 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003603/0.3841, allocations: 3.094 MB / 456.7 MB, free: 6.562 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.772e-05/0.3842, allocations: 33.7 kB / 456.8 MB, free: 6.523 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001316/0.3855, allocations: 1.569 MB / 458.4 MB, free: 4.945 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.3857, allocations: 169.6 kB / 458.5 MB, free: 4.777 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002917/0.386, allocations: 226.1 kB / 458.7 MB, free: 4.551 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.3861, allocations: 337.9 kB / 459.1 MB, free: 4.215 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005871/0.3867, allocations: 245.9 kB / 459.3 MB, free: 3.977 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007418/0.3874, allocations: 0.6059 MB / 459.9 MB, free: 3.191 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.3888, allocations: 0.9013 MB / 460.8 MB, free: 2.117 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.3889, allocations: 0 / 460.8 MB, free: 2.117 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002232/0.3911, allocations: 1.244 MB / 462.1 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.3911, allocations: 16.88 kB / 462.1 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001438/0.3913, allocations: 81.69 kB / 462.2 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.951e-05/0.3913, allocations: 16 kB / 462.2 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006787/0.392, allocations: 203.7 kB / 462.4 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.439e-05/0.392, allocations: 27.86 kB / 462.4 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009604/0.393, allocations: 107 kB / 462.5 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.765e-05/0.3931, allocations: 64 kB / 462.6 MB, free: 372 kB / 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.0007341/0.3939, allocations: 462.2 kB / 463 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004614/0.3943, allocations: 407 kB / 463.4 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0025/0.3968, allocations: 1.205 MB / 464.6 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.3969, allocations: 4 kB / 464.6 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.3969, allocations: 4 kB / 464.6 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.3969, allocations: 3.984 kB / 464.6 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003739/0.4006, allocations: 2.147 MB / 466.8 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001003/0.4007, allocations: 68 kB / 466.8 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004669/0.4012, allocations: 95.84 kB / 466.9 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.4012, allocations: 3.625 kB / 466.9 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.683e-05/0.4013, allocations: 32 kB / 467 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.4013, allocations: 4.062 kB / 467 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4013, allocations: 0 / 467 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.4035, allocations: 1.329 MB / 468.3 MB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.4045, allocations: 488 kB / 468.8 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003063/0.4049, allocations: 12 kB / 468.8 MB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006718/0.4055, allocations: 32.03 kB / 468.8 MB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.4057, allocations: 59.94 kB / 468.9 MB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.35e-05/0.4058, allocations: 39.94 kB / 468.9 MB, free: 9.859 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002592/0.4084, allocations: 2.007 MB / 470.9 MB, free: 7.859 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4084, allocations: 4 kB / 470.9 MB, free: 7.855 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001391/0.4098, allocations: 0.5934 MB / 471.5 MB, free: 7.262 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.001203/0.411, allocations: 0.7673 MB / 472.3 MB, free: 6.488 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.4126, allocations: 0.8168 MB / 473.1 MB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4127, allocations: 0 / 473.1 MB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007484/0.4134, allocations: 452 kB / 473.6 MB, free: 5.176 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/0.4159, allocations: 0.6373 MB / 474.2 MB, free: 4.535 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006376/0.4223, allocations: 4.485 MB / 478.7 MB, free: 16 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001281/0.4236, allocations: 1.706 MB / 480.4 MB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001095/0.4247, allocations: 361.3 kB / 480.7 MB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.4249, allocations: 151.4 kB / 480.9 MB, free: 13.77 MB / 398.1 MB Notification: Performance of SimCode: time 9.81e-07/0.4249, allocations: 0 / 480.9 MB, free: 13.77 MB / 398.1 MB Notification: Performance of Templates: time 0.05422/0.4792, allocations: 31.91 MB / 0.5008 GB, free: 14.21 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 -s cvode -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