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.00158/0.00158, allocations: 102.2 kB / 18.24 MB, free: 4.766 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.001641/0.001641, allocations: 195.3 kB / 19.18 MB, free: 3.836 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.468/1.468, allocations: 205.1 MB / 225.1 MB, free: 12.29 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.001216/0.001216, allocations: 51.92 kB / 281.3 MB, free: 3.199 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09358/0.0948, allocations: 46.63 MB / 327.9 MB, free: 4.496 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01564/0.1105, allocations: 14.61 MB / 342.6 MB, free: 5.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02372/0.1343, allocations: 19.8 MB / 362.3 MB, free: 1.945 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002748/0.137, allocations: 35.75 kB / 362.4 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003737/0.1409, allocations: 1.232 MB / 363.6 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007494/0.1484, allocations: 2.297 MB / 365.9 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004761/0.1532, allocations: 1.393 MB / 367.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01036/0.1636, allocations: 6.437 MB / 373.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001024/0.1646, allocations: 477.6 kB / 374.2 MB, free: 6 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001653/0.1663, allocations: 1.003 MB / 375.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001356/0.1677, allocations: 1.118 MB / 376.3 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002398/0.1679, allocations: 76 kB / 376.4 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003994/0.1719, allocations: 1.159 MB / 377.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004942/0.1725, allocations: 345.4 kB / 377.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001884/0.1744, allocations: 1.44 MB / 379.3 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1585/0.3329, allocations: 3.965 MB / 383.3 MB, free: 19.47 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.3329, allocations: 0 / 383.3 MB, free: 19.47 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.333, allocations: 0 / 383.3 MB, free: 19.47 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001507/0.3331, allocations: 7.031 kB / 383.3 MB, free: 19.47 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.007316/0.3404, allocations: 3.857 MB / 387.2 MB, free: 17.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.039e-05/0.3405, allocations: 9.031 kB / 387.2 MB, free: 17.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006844/0.3412, allocations: 414.4 kB / 387.6 MB, free: 17.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0042/0.3454, allocations: 2.501 MB / 390.1 MB, free: 16.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/0.3455, allocations: 41.53 kB / 390.1 MB, free: 16.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001618/0.3456, allocations: 59.16 kB / 390.2 MB, free: 16.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/0.3471, allocations: 0.7306 MB / 390.9 MB, free: 16.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.3471, allocations: 1.406 kB / 390.9 MB, free: 16.19 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.477e-05/0.3472, allocations: 17.81 kB / 390.9 MB, free: 16.19 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.649e-05/0.3472, allocations: 22.7 kB / 391 MB, free: 16.19 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.3488, allocations: 0.8181 MB / 391.8 MB, free: 16.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005804/0.3546, allocations: 3.116 MB / 394.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.3558, allocations: 0.5767 MB / 395.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009013/0.3567, allocations: 0.6465 MB / 396.1 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02558/0.3823, allocations: 30.2 MB / 426.3 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007353/0.383, allocations: 365.3 kB / 426.7 MB, free: 5.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.465e-06/0.3831, allocations: 0 / 426.7 MB, free: 5.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002619/0.3857, allocations: 1.112 MB / 427.8 MB, free: 4.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.3858, allocations: 69.59 kB / 427.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0042/0.39, allocations: 3.107 MB / 431 MB, free: 1.789 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001067/0.3901, allocations: 33.7 kB / 431 MB, free: 1.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001517/0.3916, allocations: 1.576 MB / 432.6 MB, free: 168 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/0.3918, allocations: 165.2 kB / 432.7 MB, free: 4 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003428/0.3921, allocations: 226.1 kB / 432.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3923, allocations: 341.9 kB / 433.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006171/0.3929, allocations: 241.9 kB / 433.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008424/0.3938, allocations: 0.6057 MB / 434.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/0.3952, allocations: 0.8935 MB / 435 MB, free: 13.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.3952, allocations: 8 kB / 435 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002587/0.3978, allocations: 1.246 MB / 436.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.3979, allocations: 14.48 kB / 436.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001117/0.398, allocations: 87.98 kB / 436.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/0.398, allocations: 16 kB / 436.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007317/0.3988, allocations: 200.3 kB / 436.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.634e-05/0.3988, allocations: 25.8 kB / 436.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/0.4006, allocations: 111 kB / 436.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/0.4008, allocations: 68 kB / 436.8 MB, free: 11.74 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.0009945/0.4018, allocations: 450.8 kB / 437.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007654/0.4025, allocations: 403.1 kB / 437.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003308/0.4059, allocations: 1.221 MB / 438.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.4059, allocations: 4 kB / 438.8 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.4059, allocations: 2.719 kB / 438.8 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.4059, allocations: 7.984 kB / 438.8 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004133/0.41, allocations: 2.151 MB / 441 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000106/0.4102, allocations: 75.8 kB / 441.1 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004972/0.4107, allocations: 99.45 kB / 441.2 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.4107, allocations: 0 / 441.2 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.784e-05/0.4108, allocations: 31.98 kB / 441.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.4108, allocations: 7.469 kB / 441.2 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4108, allocations: 0 / 441.2 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002561/0.4133, allocations: 1.328 MB / 442.5 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/0.4145, allocations: 493.8 kB / 443 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004282/0.4149, allocations: 12 kB / 443 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007328/0.4157, allocations: 31.95 kB / 443.1 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/0.4158, allocations: 59.42 kB / 443.1 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.512e-05/0.4159, allocations: 39.98 kB / 443.2 MB, free: 5.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002916/0.4189, allocations: 2.023 MB / 445.2 MB, free: 3.266 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4189, allocations: 4.062 kB / 445.2 MB, free: 3.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001772/0.4207, allocations: 0.6051 MB / 445.8 MB, free: 2.656 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.001127/0.4218, allocations: 0.7748 MB / 446.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001803/0.4236, allocations: 0.8314 MB / 447.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.4236, allocations: 0 / 447.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007823/0.4244, allocations: 449.1 kB / 447.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/0.4267, allocations: 0.5336 MB / 448.4 MB, free: 228 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006657/0.4333, allocations: 4.674 MB / 453 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001139/0.4345, allocations: 1.718 MB / 454.8 MB, free: 9.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003429/0.4349, allocations: 155.4 kB / 454.9 MB, free: 9.637 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4349, allocations: 0 / 454.9 MB, free: 9.637 MB / 366.1 MB Notification: Performance of Templates: time 0.05381/0.4887, allocations: 38.6 MB / 493.5 MB, free: 3.051 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches