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.001475/0.001475, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001663/0.001663, allocations: 190.9 kB / 19.28 MB, free: 3.766 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.411/1.411, allocations: 205.1 MB / 225.2 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.001204/0.001204, allocations: 47.94 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08421/0.08543, allocations: 46.63 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007779/0.09325, allocations: 7.714 MB / 336.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01834/0.1116, allocations: 18.51 MB / 354.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.1127, allocations: 63.44 kB / 355 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002077/0.1148, allocations: 0.8203 MB / 355.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005009/0.1199, allocations: 1.778 MB / 357.6 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003548/0.1234, allocations: 1.283 MB / 358.9 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004505/0.1279, allocations: 3.183 MB / 362.1 MB, free: 2.246 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003292/0.1283, allocations: 236.6 kB / 362.3 MB, free: 1.992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005501/0.1289, allocations: 0.5054 MB / 362.8 MB, free: 1.484 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005556/0.1294, allocations: 0.5435 MB / 363.3 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.456e-05/0.1295, allocations: 44 kB / 363.4 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002797/0.1323, allocations: 1.132 MB / 364.5 MB, free: 15.76 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.1325, allocations: 170.7 kB / 364.7 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005608/0.1331, allocations: 0.6831 MB / 365.4 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002543/0.1356, allocations: 2.227 MB / 367.6 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1356, allocations: 0 / 367.6 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1356, allocations: 0 / 367.6 MB, free: 12.67 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.1357, allocations: 0 / 367.6 MB, free: 12.67 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002703/0.1384, allocations: 2.02 MB / 369.6 MB, free: 10.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.1384, allocations: 12.03 kB / 369.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002009/0.1386, allocations: 193.7 kB / 369.8 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001735/0.1404, allocations: 1.366 MB / 371.2 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.1404, allocations: 24.56 kB / 371.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.2e-05/0.1405, allocations: 27.91 kB / 371.2 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008151/0.1413, allocations: 433.2 kB / 371.7 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.1413, allocations: 0 / 371.7 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.902e-05/0.1414, allocations: 12 kB / 371.7 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.1414, allocations: 12 kB / 371.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009797/0.1424, allocations: 478 kB / 372.2 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002491/0.1449, allocations: 1.623 MB / 373.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008222/0.1457, allocations: 371.3 kB / 374.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006801/0.1464, allocations: 409.8 kB / 374.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1529/0.2993, allocations: 15.22 MB / 389.8 MB, free: 47.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006549/0.3, allocations: 258.3 kB / 390 MB, free: 47.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.846e-06/0.3, allocations: 0 / 390 MB, free: 47.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002146/0.3022, allocations: 0.8393 MB / 390.8 MB, free: 46.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.3022, allocations: 57.91 kB / 390.9 MB, free: 46.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002501/0.3048, allocations: 1.468 MB / 392.4 MB, free: 46.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.391e-05/0.3048, allocations: 34.45 kB / 392.4 MB, free: 46.15 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000501/0.3053, allocations: 0.7244 MB / 393.1 MB, free: 45.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.32e-05/0.3054, allocations: 93.98 kB / 393.2 MB, free: 45.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001789/0.3056, allocations: 129.5 kB / 393.3 MB, free: 45.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.742e-05/0.3057, allocations: 329.3 kB / 393.7 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004184/0.3061, allocations: 157 kB / 393.8 MB, free: 45.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004607/0.3066, allocations: 363.8 kB / 394.2 MB, free: 44.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008757/0.3074, allocations: 0.5243 MB / 394.7 MB, free: 44.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.3075, allocations: 4.562 kB / 394.7 MB, free: 44.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001467/0.3089, allocations: 0.757 MB / 395.5 MB, free: 44.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.309, allocations: 8.188 kB / 395.5 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.371e-05/0.309, allocations: 42.42 kB / 395.5 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003285/0.3094, allocations: 142.4 kB / 395.7 MB, free: 44.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004196/0.3098, allocations: 104.5 kB / 395.8 MB, free: 44.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005521/0.3104, allocations: 0.685 MB / 396.4 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006401/0.311, allocations: 66.5 kB / 396.5 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-05/0.3111, allocations: 34.38 kB / 396.5 MB, free: 43.52 MB / 318.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.0003691/0.3115, allocations: 276 kB / 396.8 MB, free: 43.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002441/0.3117, allocations: 194.7 kB / 397 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001551/0.3133, allocations: 0.7471 MB / 397.7 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3133, allocations: 3.344 kB / 397.7 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3133, allocations: 0.9375 kB / 397.8 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.3133, allocations: 3.984 kB / 397.8 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001977/0.3153, allocations: 1.323 MB / 399.1 MB, free: 42.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.954e-05/0.3154, allocations: 33 kB / 399.1 MB, free: 42.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.3156, allocations: 46.2 kB / 399.2 MB, free: 42.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002495/0.3159, allocations: 122.2 kB / 399.3 MB, free: 42.01 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.406e-05/0.3159, allocations: 20.22 kB / 399.3 MB, free: 42.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004572/0.3164, allocations: 0.6702 MB / 400 MB, free: 41.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3164, allocations: 5.312 kB / 400 MB, free: 41.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.3176, allocations: 0.7126 MB / 400.7 MB, free: 41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004472/0.3181, allocations: 283.8 kB / 401 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002022/0.3183, allocations: 8.031 kB / 401 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004647/0.3188, allocations: 33.67 kB / 401 MB, free: 40.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.3189, allocations: 34.53 kB / 401 MB, free: 40.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.557e-05/0.3189, allocations: 26.05 kB / 401.1 MB, free: 40.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001106/0.3201, allocations: 0.9634 MB / 402 MB, free: 40.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3201, allocations: 3.172 kB / 402 MB, free: 40.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008357/0.3209, allocations: 336.5 kB / 402.4 MB, free: 40.15 MB / 318.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.0007941/0.3217, allocations: 0.5721 MB / 402.9 MB, free: 39.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.3228, allocations: 0.5126 MB / 403.4 MB, free: 39.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3229, allocations: 8 kB / 403.4 MB, free: 39.65 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005568/0.3234, allocations: 293.2 kB / 403.7 MB, free: 39.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009219/0.3244, allocations: 268.6 kB / 404 MB, free: 39.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002735/0.3271, allocations: 2.213 MB / 406.2 MB, free: 37.55 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004296/0.3275, allocations: 1.153 MB / 407.4 MB, free: 36.37 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004514/0.328, allocations: 199.9 kB / 407.6 MB, free: 36.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.3281, allocations: 91.44 kB / 407.6 MB, free: 36.09 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3281, allocations: 0 / 407.6 MB, free: 36.09 MB / 318.1 MB Notification: Performance of Templates: time 0.02624/0.3544, allocations: 19.8 MB / 427.4 MB, free: 16.29 MB / 318.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/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