Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 88.69 kB / 20.95 MB, free: 464 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 150 kB / 24.25 MB, free: 3.496 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 173.3 MB / 200.8 MB, free: 12.78 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 267.3 MB, free: 10.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.47e-05/2.627e-05, allocations: 5.406 kB / 267.3 MB, free: 10.25 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008707/0.008734, allocations: 6.927 MB / 274.2 MB, free: 3.289 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.02245/0.03118, allocations: 16.66 MB / 290.9 MB, free: 2.562 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001274/0.03245, allocations: 94.94 kB / 291 MB, free: 2.469 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00252/0.03497, allocations: 0.7631 MB / 291.7 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006796/0.04177, allocations: 1.877 MB / 293.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004455/0.04623, allocations: 1.344 MB / 295 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005807/0.05203, allocations: 3.36 MB / 298.3 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000346/0.05238, allocations: 132.8 kB / 298.5 MB, free: 10.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001233/0.05361, allocations: 0.7871 MB / 299.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000652/0.05426, allocations: 418.5 kB / 299.7 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.05438, allocations: 44 kB / 299.7 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00321/0.05759, allocations: 1.167 MB / 300.9 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001995/0.05779, allocations: 174.8 kB / 301 MB, free: 8.348 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005664/0.05835, allocations: 374.8 kB / 301.4 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00327/0.06162, allocations: 2.266 MB / 303.7 MB, free: 5.707 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.06163, allocations: 0 / 303.7 MB, free: 5.707 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.06163, allocations: 0 / 303.7 MB, free: 5.707 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.06165, allocations: 0 / 303.7 MB, free: 5.707 MB / 286.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.003374/0.06502, allocations: 1.987 MB / 305.7 MB, free: 3.676 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.06506, allocations: 8.922 kB / 305.7 MB, free: 3.668 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003154/0.06538, allocations: 226.7 kB / 305.9 MB, free: 3.445 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002202/0.06758, allocations: 1.413 MB / 307.3 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.0676, allocations: 20.66 kB / 307.3 MB, free: 1.934 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.96e-05/0.06769, allocations: 28 kB / 307.3 MB, free: 1.906 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.06871, allocations: 437.8 kB / 307.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.06872, allocations: 0 / 307.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.271e-05/0.06878, allocations: 12 kB / 307.8 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.072e-05/0.0688, allocations: 11.92 kB / 307.8 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/0.07005, allocations: 482.3 kB / 308.3 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1177/0.1877, allocations: 1.433 MB / 309.7 MB, free: 51.52 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000993/0.1887, allocations: 340.9 kB / 310 MB, free: 51.5 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007149/0.1894, allocations: 374.3 kB / 310.4 MB, free: 51.44 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01501/0.2044, allocations: 7.715 MB / 318.1 MB, free: 49.37 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006212/0.2051, allocations: 269 kB / 318.4 MB, free: 49.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 2.314e-06/0.2051, allocations: 0 / 318.4 MB, free: 49.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001856/0.2069, allocations: 0.7821 MB / 319.2 MB, free: 49.11 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.207, allocations: 58.62 kB / 319.2 MB, free: 49.04 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/0.2084, allocations: 1.46 MB / 320.7 MB, free: 48.4 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.2085, allocations: 32.55 kB / 320.7 MB, free: 48.36 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004368/0.2089, allocations: 0.7292 MB / 321.4 MB, free: 47.7 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.511e-05/0.209, allocations: 99.78 kB / 321.5 MB, free: 47.61 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.2091, allocations: 122 kB / 321.6 MB, free: 47.48 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.532e-05/0.2092, allocations: 330 kB / 322 MB, free: 47.16 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003927/0.2096, allocations: 158.4 kB / 322.1 MB, free: 47.01 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004356/0.21, allocations: 356.8 kB / 322.5 MB, free: 46.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008346/0.2108, allocations: 0.531 MB / 323 MB, free: 45.98 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.2108, allocations: 4 kB / 323 MB, free: 45.97 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001235/0.2121, allocations: 0.7775 MB / 323.8 MB, free: 45.2 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.2121, allocations: 8 kB / 323.8 MB, free: 45.19 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-05/0.2121, allocations: 47.94 kB / 323.8 MB, free: 45.14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000281/0.2124, allocations: 130.2 kB / 324 MB, free: 45.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003896/0.2128, allocations: 110.2 kB / 324.1 MB, free: 44.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004669/0.2133, allocations: 0.6773 MB / 324.8 MB, free: 44.2 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000534/0.2138, allocations: 74.94 kB / 324.8 MB, free: 44.14 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.513e-05/0.2139, allocations: 36 kB / 324.9 MB, free: 44.11 MB / 286.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.0003302/0.2142, allocations: 280.8 kB / 325.1 MB, free: 43.83 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.2144, allocations: 202.8 kB / 325.3 MB, free: 43.63 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.2159, allocations: 0.7383 MB / 326.1 MB, free: 42.93 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.216, allocations: 4 kB / 326.1 MB, free: 42.93 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.216, allocations: 0 / 326.1 MB, free: 42.93 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.216, allocations: 0 / 326.1 MB, free: 42.93 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.2179, allocations: 1.194 MB / 327.3 MB, free: 41.7 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-05/0.2179, allocations: 36 kB / 327.3 MB, free: 41.66 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002517/0.2181, allocations: 47.89 kB / 327.4 MB, free: 41.62 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00021/0.2184, allocations: 125.7 kB / 327.5 MB, free: 41.49 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.2184, allocations: 24 kB / 327.5 MB, free: 41.47 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004357/0.2188, allocations: 0.6665 MB / 328.2 MB, free: 40.78 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.2188, allocations: 4.031 kB / 328.2 MB, free: 40.77 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.22, allocations: 0.7333 MB / 328.9 MB, free: 40.02 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003848/0.2204, allocations: 214.7 kB / 329.1 MB, free: 39.81 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.2205, allocations: 8 kB / 329.1 MB, free: 39.8 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000447/0.221, allocations: 31.95 kB / 329.2 MB, free: 39.77 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.2211, allocations: 47.2 kB / 329.2 MB, free: 39.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.072e-05/0.2211, allocations: 19.98 kB / 329.2 MB, free: 39.71 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009318/0.2221, allocations: 0.961 MB / 330.2 MB, free: 38.73 MB / 286.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2221, allocations: 4 kB / 330.2 MB, free: 38.72 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008553/0.2229, allocations: 332.1 kB / 330.5 MB, free: 38.42 MB / 286.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.0007327/0.2236, allocations: 0.597 MB / 331.1 MB, free: 37.95 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001204/0.2248, allocations: 0.5025 MB / 331.6 MB, free: 37.44 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2248, allocations: 0 / 331.6 MB, free: 37.44 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005684/0.2254, allocations: 276.3 kB / 331.9 MB, free: 37.16 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.2266, allocations: 311.1 kB / 332.2 MB, free: 36.86 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.2294, allocations: 2.246 MB / 334.4 MB, free: 34.57 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.2298, allocations: 0.5628 MB / 335 MB, free: 33.97 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004518/0.2302, allocations: 199.9 kB / 335.2 MB, free: 33.77 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.2303, allocations: 92.48 kB / 335.3 MB, free: 33.68 MB / 286.1 MB Notification: Performance of SimCode: time 1.523e-06/0.2303, allocations: 0 / 335.3 MB, free: 33.68 MB / 286.1 MB Notification: Performance of Templates: time 0.02938/0.2597, allocations: 19.41 MB / 354.7 MB, free: 14.54 MB / 286.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.88755539432168]