Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001716/0.001716, allocations: 183.1 kB / 18.66 MB, free: 4.414 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 / 224.5 MB, free: 12.25 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.001089/0.001089, allocations: 51.94 kB / 328.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/0.09068, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.1915/0.2823, allocations: 7.707 MB / 382.8 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01937/0.3017, allocations: 18.52 MB / 401.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001738/0.3035, allocations: 65.09 kB / 401.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003849/0.3074, allocations: 0.8278 MB / 402.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007833/0.3153, allocations: 1.766 MB / 404 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005545/0.3208, allocations: 1.289 MB / 405.3 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006426/0.3273, allocations: 3.188 MB / 408.5 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004314/0.3277, allocations: 217.7 kB / 408.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009509/0.3287, allocations: 0.5059 MB / 409.2 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007076/0.3294, allocations: 0.5536 MB / 409.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.3295, allocations: 42.31 kB / 409.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004695/0.3342, allocations: 1.128 MB / 410.9 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002609/0.3345, allocations: 171.3 kB / 411.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009824/0.3355, allocations: 0.6828 MB / 411.8 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004735/0.3403, allocations: 2.246 MB / 414 MB, free: 6.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3403, allocations: 0 / 414 MB, free: 6.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3403, allocations: 1.125 kB / 414 MB, free: 6.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.021e-05/0.3403, allocations: 0 / 414 MB, free: 6.066 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003306/0.3436, allocations: 2.081 MB / 416.1 MB, free: 4.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.3437, allocations: 9.812 kB / 416.1 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002857/0.344, allocations: 206.1 kB / 416.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/0.3458, allocations: 1.374 MB / 417.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.3458, allocations: 20.59 kB / 417.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.894e-05/0.3459, allocations: 26.19 kB / 417.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008996/0.3468, allocations: 439.3 kB / 418.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.3468, allocations: 0 / 418.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.3469, allocations: 14.66 kB / 418.2 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.3469, allocations: 10.67 kB / 418.2 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.348, allocations: 478.8 kB / 418.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.3508, allocations: 1.626 MB / 420.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009491/0.3517, allocations: 375.9 kB / 420.7 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007465/0.3525, allocations: 407.5 kB / 421.1 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01496/0.3675, allocations: 15.24 MB / 436.3 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006287/0.3681, allocations: 263 kB / 436.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.394e-06/0.3681, allocations: 0 / 436.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002071/0.3702, allocations: 0.8495 MB / 437.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.3703, allocations: 59.39 kB / 437.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001636/0.3719, allocations: 1.464 MB / 438.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.372, allocations: 29.7 kB / 439 MB, free: 13.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005783/0.3726, allocations: 0.7233 MB / 439.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.968e-05/0.3726, allocations: 99.22 kB / 439.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.3728, allocations: 134.1 kB / 439.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3729, allocations: 326 kB / 440.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004411/0.3734, allocations: 157 kB / 440.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005444/0.3739, allocations: 359.4 kB / 440.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009845/0.3749, allocations: 0.5437 MB / 441.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.375, allocations: 4 kB / 441.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001414/0.3764, allocations: 0.7602 MB / 442 MB, free: 10.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.3764, allocations: 8.125 kB / 442 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.885e-05/0.3765, allocations: 40 kB / 442.1 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003199/0.3768, allocations: 140.8 kB / 442.2 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/0.3772, allocations: 103.8 kB / 442.3 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005909/0.3778, allocations: 0.6889 MB / 443 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007188/0.3785, allocations: 67.64 kB / 443.1 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.628e-05/0.3786, allocations: 36 kB / 443.1 MB, free: 8.938 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003692/0.379, allocations: 269.7 kB / 443.4 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.3792, allocations: 206.8 kB / 443.6 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.3809, allocations: 0.7534 MB / 444.3 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.3809, allocations: 4 kB / 444.3 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3809, allocations: 0 / 444.3 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.381, allocations: 0 / 444.3 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.3831, allocations: 1.315 MB / 445.6 MB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.806e-05/0.3831, allocations: 35.98 kB / 445.7 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002399/0.3834, allocations: 47.95 kB / 445.7 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002332/0.3836, allocations: 124.8 kB / 445.9 MB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.784e-05/0.3837, allocations: 19.98 kB / 445.9 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005315/0.3842, allocations: 0.6709 MB / 446.5 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3842, allocations: 0.875 kB / 446.5 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.3855, allocations: 0.7366 MB / 447.3 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004149/0.3859, allocations: 291.6 kB / 447.6 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.3861, allocations: 11.98 kB / 447.6 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004242/0.3865, allocations: 27.97 kB / 447.6 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.3867, allocations: 39.89 kB / 447.6 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.373e-05/0.3867, allocations: 24 kB / 447.7 MB, free: 4.215 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001133/0.3878, allocations: 0.9692 MB / 448.6 MB, free: 3.227 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3879, allocations: 0 / 448.6 MB, free: 3.227 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009152/0.3888, allocations: 335.6 kB / 449 MB, free: 2.898 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008232/0.3896, allocations: 0.5782 MB / 449.5 MB, free: 2.312 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.3908, allocations: 0.5121 MB / 450.1 MB, free: 1.789 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3909, allocations: 0 / 450.1 MB, free: 1.789 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006049/0.3915, allocations: 299.5 kB / 450.3 MB, free: 1.484 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009398/0.3924, allocations: 258.2 kB / 450.6 MB, free: 1.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.3956, allocations: 2.254 MB / 452.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006498/0.3963, allocations: 1.157 MB / 454 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005294/0.3968, allocations: 199.9 kB / 454.2 MB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.3969, allocations: 91.44 kB / 454.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.397, allocations: 0 / 454.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of Templates: time 0.03239/0.4293, allocations: 19.89 MB / 474.2 MB, free: 9.547 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches