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.001475/0.001475, allocations: 109 kB / 17.15 MB, free: 6.328 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.001617/0.001617, allocations: 198 kB / 18.07 MB, free: 5.434 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.359/1.359, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.00119/0.00119, allocations: 47.92 kB / 280 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08586/0.08707, allocations: 46.63 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0143/0.1014, allocations: 14.49 MB / 341.1 MB, free: 6.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02262/0.1241, allocations: 19.94 MB / 361 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002443/0.1266, allocations: 31.81 kB / 361 MB, free: 2.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003198/0.1298, allocations: 1.079 MB / 362.1 MB, free: 1.219 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008333/0.1382, allocations: 1.93 MB / 364.1 MB, free: 15.28 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004107/0.1423, allocations: 1.152 MB / 365.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008916/0.1512, allocations: 6.343 MB / 371.5 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000641/0.1519, allocations: 454 kB / 372 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001041/0.1529, allocations: 0.9715 MB / 373 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009823/0.1539, allocations: 1.106 MB / 374.1 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000175/0.1541, allocations: 52 kB / 374.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003078/0.1572, allocations: 1.124 MB / 375.2 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003139/0.1575, allocations: 317.5 kB / 375.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001191/0.1587, allocations: 1.413 MB / 377 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1623/0.321, allocations: 3.901 MB / 380.9 MB, free: 23.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3211, allocations: 4.109 kB / 380.9 MB, free: 23.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3211, allocations: 1.375 kB / 380.9 MB, free: 23.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.012e-05/0.3212, allocations: 0 / 380.9 MB, free: 23.64 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.005691/0.3269, allocations: 3.85 MB / 384.7 MB, free: 21.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3269, allocations: 10.52 kB / 384.7 MB, free: 21.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004621/0.3274, allocations: 418.4 kB / 385.1 MB, free: 21.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003925/0.3313, allocations: 2.508 MB / 387.6 MB, free: 20.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.327e-05/0.3314, allocations: 38.38 kB / 387.7 MB, free: 20.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/0.3315, allocations: 58.86 kB / 387.7 MB, free: 20.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.333, allocations: 0.728 MB / 388.5 MB, free: 20.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.3331, allocations: 2.078 kB / 388.5 MB, free: 20.37 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.291e-05/0.3332, allocations: 18.94 kB / 388.5 MB, free: 20.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.3332, allocations: 21.56 kB / 388.5 MB, free: 20.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001697/0.3349, allocations: 0.8169 MB / 389.3 MB, free: 20.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005355/0.3403, allocations: 3.109 MB / 392.4 MB, free: 19.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.3415, allocations: 0.5841 MB / 393 MB, free: 19.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.3425, allocations: 0.6465 MB / 393.7 MB, free: 19.79 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02402/0.3665, allocations: 30.2 MB / 423.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000753/0.3673, allocations: 366.7 kB / 424.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.445e-06/0.3673, allocations: 0 / 424.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002397/0.3697, allocations: 1.116 MB / 425.3 MB, free: 8.773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.3698, allocations: 63.16 kB / 425.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003668/0.3735, allocations: 3.111 MB / 428.5 MB, free: 5.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.708e-05/0.3735, allocations: 29.7 kB / 428.5 MB, free: 5.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001301/0.3748, allocations: 1.579 MB / 430.1 MB, free: 3.973 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.375, allocations: 172.5 kB / 430.3 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002963/0.3753, allocations: 226.1 kB / 430.5 MB, free: 3.586 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.3754, allocations: 343.5 kB / 430.8 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005649/0.376, allocations: 241.2 kB / 431.1 MB, free: 3.016 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007569/0.3768, allocations: 0.5995 MB / 431.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/0.3781, allocations: 0.8962 MB / 432.6 MB, free: 1.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.146e-06/0.3782, allocations: 4 kB / 432.6 MB, free: 1.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002151/0.3803, allocations: 1.254 MB / 433.8 MB, free: 48 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.3803, allocations: 8 kB / 433.8 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001288/0.3805, allocations: 84.03 kB / 433.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.24e-05/0.3805, allocations: 23.94 kB / 433.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006958/0.3812, allocations: 199 kB / 434.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.307e-05/0.3813, allocations: 26.27 kB / 434.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.3825, allocations: 117 kB / 434.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.3826, allocations: 64.5 kB / 434.3 MB, free: 15.56 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.0007659/0.3834, allocations: 446.3 kB / 434.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000389/0.3838, allocations: 399.1 kB / 435.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002798/0.3866, allocations: 1.23 MB / 436.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.066e-06/0.3866, allocations: 4 kB / 436.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3866, allocations: 0 / 436.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.3866, allocations: 6.297 kB / 436.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003585/0.3902, allocations: 2.152 MB / 438.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.701e-05/0.3903, allocations: 76.05 kB / 438.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000471/0.3908, allocations: 90.83 kB / 438.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.3908, allocations: 4 kB / 438.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.842e-05/0.3909, allocations: 35.98 kB / 438.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.3909, allocations: 4 kB / 438.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3909, allocations: 0 / 438.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/0.3933, allocations: 1.332 MB / 440.1 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008454/0.3942, allocations: 498.2 kB / 440.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003276/0.3945, allocations: 8 kB / 440.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006762/0.3952, allocations: 27.95 kB / 440.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001632/0.3954, allocations: 59.95 kB / 440.7 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.495e-05/0.3955, allocations: 44.05 kB / 440.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002574/0.398, allocations: 2.015 MB / 442.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.398, allocations: 4 kB / 442.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001495/0.3995, allocations: 0.5934 MB / 443.3 MB, free: 6.512 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.001081/0.4006, allocations: 0.7916 MB / 444.1 MB, free: 5.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.4022, allocations: 0.8048 MB / 444.9 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4022, allocations: 2.906 kB / 444.9 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007684/0.403, allocations: 451.7 kB / 445.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001996/0.405, allocations: 0.5005 MB / 445.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008599/0.4136, allocations: 5.438 MB / 451.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001284/0.415, allocations: 1.717 MB / 453 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00145/0.4164, allocations: 365.2 kB / 453.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003156/0.4167, allocations: 151.4 kB / 453.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of SimCode: time 2.074e-06/0.4168, allocations: 0 / 453.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of Templates: time 0.05224/0.469, allocations: 30.97 MB / 484.5 MB, free: 13.55 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