Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 84.34 kB / 20.95 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 165.3 kB / 24.27 MB, free: 144 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.49/1.49, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.781e-05/2.967e-05, allocations: 2.312 kB / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009873/0.009902, allocations: 6.934 MB / 279.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1484/0.1583, allocations: 16.69 MB / 295.9 MB, free: 14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009851/0.1593, allocations: 98.25 kB / 296 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002048/0.1613, allocations: 0.7758 MB / 296.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005044/0.1664, allocations: 1.87 MB / 298.7 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004346/0.1707, allocations: 1.341 MB / 300 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004729/0.1754, allocations: 3.398 MB / 303.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003148/0.1757, allocations: 130 kB / 303.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009788/0.1767, allocations: 0.7906 MB / 304.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005126/0.1772, allocations: 417.1 kB / 304.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.401e-05/0.1773, allocations: 40.44 kB / 304.8 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003265/0.1806, allocations: 1.182 MB / 306 MB, free: 11.72 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.1807, allocations: 168.6 kB / 306.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004667/0.1812, allocations: 375.5 kB / 306.5 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002393/0.1836, allocations: 2.281 MB / 308.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1836, allocations: 0 / 308.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1836, allocations: 0 / 308.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.1836, allocations: 0 / 308.8 MB, free: 10.45 MB / 266.7 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.002351/0.186, allocations: 1.967 MB / 310.7 MB, free: 8.953 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.186, allocations: 11.53 kB / 310.7 MB, free: 8.949 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002284/0.1862, allocations: 223.3 kB / 311 MB, free: 8.836 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001494/0.1877, allocations: 1.428 MB / 312.4 MB, free: 7.879 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.1877, allocations: 19.56 kB / 312.4 MB, free: 7.871 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-05/0.1878, allocations: 30.27 kB / 312.4 MB, free: 7.859 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000804/0.1886, allocations: 436.7 kB / 312.9 MB, free: 7.586 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.1886, allocations: 0 / 312.9 MB, free: 7.586 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.379e-05/0.1887, allocations: 15.94 kB / 312.9 MB, free: 7.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.1887, allocations: 8 kB / 312.9 MB, free: 7.562 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009305/0.1896, allocations: 478.3 kB / 313.4 MB, free: 7.094 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.1918, allocations: 1.431 MB / 314.8 MB, free: 5.637 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007982/0.1926, allocations: 339.4 kB / 315.1 MB, free: 5.297 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000592/0.1932, allocations: 373.8 kB / 315.5 MB, free: 4.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0121/0.2053, allocations: 7.736 MB / 323.2 MB, free: 13.03 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007072/0.206, allocations: 262 kB / 323.5 MB, free: 12.76 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.974e-06/0.206, allocations: 0 / 323.5 MB, free: 12.76 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.002413/0.2084, allocations: 0.7772 MB / 324.3 MB, free: 11.98 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.2085, allocations: 59.34 kB / 324.3 MB, free: 11.91 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002158/0.2106, allocations: 1.471 MB / 325.8 MB, free: 10.4 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.2107, allocations: 33.7 kB / 325.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008029/0.2115, allocations: 0.7193 MB / 326.5 MB, free: 9.637 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.2116, allocations: 98.19 kB / 326.6 MB, free: 9.543 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/0.2118, allocations: 126 kB / 326.8 MB, free: 9.414 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.212, allocations: 322 kB / 327.1 MB, free: 9.094 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005017/0.2125, allocations: 160.9 kB / 327.2 MB, free: 8.938 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007933/0.2133, allocations: 366.8 kB / 327.6 MB, free: 8.488 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.2145, allocations: 0.5365 MB / 328.1 MB, free: 7.863 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.2145, allocations: 0 / 328.1 MB, free: 7.863 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001785/0.2163, allocations: 0.7807 MB / 328.9 MB, free: 7.074 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.2163, allocations: 8 kB / 328.9 MB, free: 7.066 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.789e-05/0.2164, allocations: 40.75 kB / 328.9 MB, free: 7.027 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003701/0.2167, allocations: 136.8 kB / 329.1 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004435/0.2172, allocations: 104.2 kB / 329.2 MB, free: 6.789 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007926/0.218, allocations: 0.6812 MB / 329.9 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006726/0.2186, allocations: 79.52 kB / 329.9 MB, free: 6.004 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.49e-05/0.2187, allocations: 36 kB / 330 MB, free: 5.969 MB / 282.7 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.0004692/0.2192, allocations: 273.6 kB / 330.2 MB, free: 5.691 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002853/0.2195, allocations: 206 kB / 330.4 MB, free: 5.492 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002005/0.2215, allocations: 0.7326 MB / 331.2 MB, free: 4.754 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-06/0.2215, allocations: 4 kB / 331.2 MB, free: 4.75 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.2215, allocations: 11.92 kB / 331.2 MB, free: 4.738 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.2215, allocations: 0 / 331.2 MB, free: 4.738 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002459/0.224, allocations: 1.182 MB / 332.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-05/0.224, allocations: 39.98 kB / 332.4 MB, free: 3.477 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002753/0.2243, allocations: 47.83 kB / 332.5 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002778/0.2246, allocations: 120.8 kB / 332.6 MB, free: 3.309 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.221e-05/0.2246, allocations: 19.98 kB / 332.6 MB, free: 3.289 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007409/0.2254, allocations: 0.6786 MB / 333.3 MB, free: 2.586 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2254, allocations: 0 / 333.3 MB, free: 2.586 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.2269, allocations: 0.7224 MB / 334 MB, free: 1.836 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004589/0.2273, allocations: 216.6 kB / 334.2 MB, free: 1.625 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001594/0.2275, allocations: 11.98 kB / 334.2 MB, free: 1.613 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004496/0.2279, allocations: 23.97 kB / 334.2 MB, free: 1.59 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.2281, allocations: 51.73 kB / 334.3 MB, free: 1.539 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.835e-05/0.2281, allocations: 20 kB / 334.3 MB, free: 1.52 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.00152/0.2296, allocations: 0.961 MB / 335.3 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2296, allocations: 0 / 335.3 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009654/0.2306, allocations: 331.6 kB / 335.6 MB, free: 220 kB / 282.7 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.0009853/0.2316, allocations: 0.6108 MB / 336.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.233, allocations: 0.4996 MB / 336.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.233, allocations: 0 / 336.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007284/0.2337, allocations: 282.7 kB / 337 MB, free: 14.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.2352, allocations: 324.8 kB / 337.3 MB, free: 14.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003841/0.239, allocations: 2.236 MB / 339.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006524/0.2397, allocations: 0.5665 MB / 340.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005965/0.2402, allocations: 203.9 kB / 340.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.2404, allocations: 88.5 kB / 340.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of SimCode: time 8.71e-07/0.2404, allocations: 0 / 340.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of Templates: time 0.03813/0.2786, allocations: 19.49 MB / 359.9 MB, free: 8.195 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.031608872930519]