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.0008949/0.0008949, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.006563/0.006563, allocations: 164.1 kB / 24.7 MB, free: 8.891 MB / 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 0.9086/0.9086, allocations: 177.1 MB / 205 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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=1999,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=1999,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.803e-06/1.803e-06, allocations: 0 / 325.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.611e-05/2.791e-05, allocations: 2.281 kB / 325.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005305/0.005333, allocations: 6.933 MB / 332.7 MB, free: 8.352 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01307/0.0184, allocations: 16.71 MB / 349.5 MB, free: 7.574 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009641/0.01936, allocations: 90.94 kB / 349.5 MB, free: 7.484 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.02099, allocations: 0.767 MB / 350.3 MB, free: 6.711 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004276/0.02526, allocations: 1.87 MB / 352.2 MB, free: 4.828 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003432/0.0287, allocations: 1.343 MB / 353.5 MB, free: 3.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003383/0.03208, allocations: 3.403 MB / 356.9 MB, free: 68 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.03237, allocations: 124.8 kB / 357.1 MB, free: 15.92 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007283/0.03309, allocations: 0.7909 MB / 357.8 MB, free: 15.13 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003599/0.03345, allocations: 418.6 kB / 358.3 MB, free: 14.72 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.452e-05/0.03351, allocations: 40 kB / 358.3 MB, free: 14.68 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002441/0.03595, allocations: 1.182 MB / 359.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.03605, allocations: 170.8 kB / 359.6 MB, free: 13.33 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002819/0.03634, allocations: 378.8 kB / 360 MB, free: 12.96 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002455/0.03879, allocations: 2.27 MB / 362.3 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.0388, allocations: 0 / 362.3 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.0388, allocations: 0 / 362.3 MB, free: 10.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.03881, allocations: 0 / 362.3 MB, free: 10.68 MB / 330.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.001809/0.04062, allocations: 1.978 MB / 364.3 MB, free: 8.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.04066, allocations: 12.02 kB / 364.3 MB, free: 8.648 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.04081, allocations: 202.7 kB / 364.5 MB, free: 8.449 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.04199, allocations: 1.249 MB / 365.7 MB, free: 7.117 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.04201, allocations: 20.66 kB / 365.7 MB, free: 7.098 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.369e-05/0.04206, allocations: 24 kB / 365.8 MB, free: 7.074 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005426/0.04261, allocations: 441.8 kB / 366.2 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.04262, allocations: 0 / 366.2 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.04264, allocations: 11.94 kB / 366.2 MB, free: 6.625 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.04266, allocations: 15.92 kB / 366.2 MB, free: 6.609 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005863/0.04324, allocations: 482.3 kB / 366.7 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001868/0.04511, allocations: 1.425 MB / 368.1 MB, free: 4.668 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004946/0.0456, allocations: 347.3 kB / 368.5 MB, free: 4.32 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004066/0.04601, allocations: 373.5 kB / 368.8 MB, free: 3.953 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007799/0.05381, allocations: 6.969 MB / 375.8 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003891/0.0542, allocations: 263.1 kB / 376 MB, free: 12.51 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.006e-06/0.0542, allocations: 0 / 376 MB, free: 12.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001167/0.05537, allocations: 0.7664 MB / 376.8 MB, free: 11.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.05541, allocations: 67.28 kB / 376.9 MB, free: 11.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/0.05655, allocations: 1.459 MB / 378.3 MB, free: 10.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.05657, allocations: 37.7 kB / 378.4 MB, free: 10.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003901/0.05697, allocations: 0.7193 MB / 379.1 MB, free: 9.395 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.14e-05/0.05703, allocations: 103.2 kB / 379.2 MB, free: 9.293 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.05715, allocations: 130 kB / 379.3 MB, free: 9.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.991e-05/0.05723, allocations: 329.9 kB / 379.6 MB, free: 8.832 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002312/0.05746, allocations: 152.9 kB / 379.8 MB, free: 8.684 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003138/0.05777, allocations: 366.8 kB / 380.2 MB, free: 8.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000553/0.05832, allocations: 0.53 MB / 380.7 MB, free: 7.609 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.05833, allocations: 4 kB / 380.7 MB, free: 7.605 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008467/0.05918, allocations: 0.7525 MB / 381.4 MB, free: 6.844 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.0592, allocations: 12 kB / 381.5 MB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.715e-05/0.05924, allocations: 40 kB / 381.5 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002205/0.05946, allocations: 136.8 kB / 381.6 MB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004751/0.05993, allocations: 111.7 kB / 381.7 MB, free: 6.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004216/0.06035, allocations: 0.6812 MB / 382.4 MB, free: 5.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.06068, allocations: 71.59 kB / 382.5 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-05/0.06073, allocations: 36.06 kB / 382.5 MB, free: 5.734 MB / 346.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.0002958/0.06102, allocations: 266.7 kB / 382.8 MB, free: 5.465 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.06114, allocations: 202.8 kB / 383 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.06215, allocations: 0.7424 MB / 383.7 MB, free: 4.512 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.06215, allocations: 4 kB / 383.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.06216, allocations: 0 / 383.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.06216, allocations: 0 / 383.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001267/0.06343, allocations: 1.193 MB / 384.9 MB, free: 3.266 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.654e-05/0.06346, allocations: 32 kB / 384.9 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.06358, allocations: 55.95 kB / 385 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001519/0.06373, allocations: 120.8 kB / 385.1 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.06375, allocations: 16 kB / 385.1 MB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003643/0.06412, allocations: 0.6694 MB / 385.8 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.06412, allocations: 0 / 385.8 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007015/0.06482, allocations: 0.7141 MB / 386.5 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002651/0.06509, allocations: 228.5 kB / 386.7 MB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.917e-05/0.06517, allocations: 12 kB / 386.8 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.06538, allocations: 23.97 kB / 386.8 MB, free: 1.348 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.436e-05/0.06546, allocations: 39.94 kB / 386.8 MB, free: 1.309 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.06549, allocations: 24 kB / 386.8 MB, free: 1.285 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007681/0.06626, allocations: 0.9571 MB / 387.8 MB, free: 316 kB / 346.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.06626, allocations: 0 / 387.8 MB, free: 316 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.000648/0.06691, allocations: 335.6 kB / 388.1 MB, free: 15.98 MB / 362.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.0007041/0.06761, allocations: 0.6004 MB / 388.7 MB, free: 15.37 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.06864, allocations: 0.4928 MB / 389.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.06864, allocations: 0 / 389.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00033/0.06897, allocations: 281.7 kB / 389.5 MB, free: 14.58 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007764/0.06975, allocations: 318.9 kB / 389.8 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.07196, allocations: 2.239 MB / 392 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.07227, allocations: 0.5666 MB / 392.6 MB, free: 11.37 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.07238, allocations: 92.5 kB / 392.7 MB, free: 11.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/0.07238, allocations: 0 / 392.7 MB, free: 11.28 MB / 362.7 MB Notification: Performance of Templates: time 0.02363/0.09601, allocations: 26.71 MB / 419.4 MB, free: 0.625 MB / 378.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] "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time [Calling sys.exit(0), Time elapsed: 5.992766544222832]