Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001515/0.001515, allocations: 92.33 kB / 21.73 MB, free: 2.68 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.001576/0.001576, allocations: 164.5 kB / 25.02 MB, free: 9.438 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 158.6 MB / 186.8 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 178] 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.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 250.3 MB, free: 3.961 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.07e-05/3.212e-05, allocations: 2.312 kB / 250.3 MB, free: 3.957 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01581/0.01584, allocations: 12.33 MB / 262.7 MB, free: 7.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02639/0.04223, allocations: 17.12 MB / 279.8 MB, free: 6.383 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001768/0.044, allocations: 138.5 kB / 279.9 MB, free: 6.246 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00302/0.04702, allocations: 1.137 MB / 281.1 MB, free: 5.102 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007406/0.05442, allocations: 2.443 MB / 283.5 MB, free: 2.641 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00432/0.05874, allocations: 1.398 MB / 284.9 MB, free: 1.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.07019, allocations: 6.682 MB / 291.6 MB, free: 10.53 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007035/0.07089, allocations: 274.3 kB / 291.9 MB, free: 10.23 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002186/0.07308, allocations: 1.461 MB / 293.3 MB, free: 8.766 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.07432, allocations: 0.7902 MB / 294.1 MB, free: 7.973 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002208/0.07454, allocations: 76 kB / 294.2 MB, free: 7.898 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003265/0.07781, allocations: 1.085 MB / 295.3 MB, free: 6.812 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003902/0.0782, allocations: 341.4 kB / 295.6 MB, free: 6.477 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001197/0.0794, allocations: 0.7709 MB / 296.4 MB, free: 5.703 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005799/0.08519, allocations: 3.986 MB / 300.4 MB, free: 1.703 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.0852, allocations: 0 / 300.4 MB, free: 1.703 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.0852, allocations: 0 / 300.4 MB, free: 1.703 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.421e-05/0.0853, allocations: 0 / 300.4 MB, free: 1.703 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.1077/0.193, allocations: 3.857 MB / 304.2 MB, free: 59.43 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.193, allocations: 15.08 kB / 304.2 MB, free: 59.42 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005692/0.1936, allocations: 476.3 kB / 304.7 MB, free: 59.18 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003568/0.1971, allocations: 2.662 MB / 307.4 MB, free: 58.09 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.829e-05/0.1972, allocations: 33.12 kB / 307.4 MB, free: 58.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.1973, allocations: 58.34 kB / 307.4 MB, free: 58.05 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.1987, allocations: 0.7357 MB / 308.2 MB, free: 57.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.1988, allocations: 0 / 308.2 MB, free: 57.79 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.377e-05/0.1988, allocations: 22.17 kB / 308.2 MB, free: 57.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.1989, allocations: 24.02 kB / 308.2 MB, free: 57.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.2005, allocations: 0.8189 MB / 309 MB, free: 57.54 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005188/0.2056, allocations: 2.819 MB / 311.9 MB, free: 56.18 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.2067, allocations: 0.5213 MB / 312.4 MB, free: 55.9 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008558/0.2076, allocations: 0.5671 MB / 312.9 MB, free: 55.6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02077/0.2284, allocations: 15.28 MB / 328.2 MB, free: 40.74 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006499/0.229, allocations: 368.1 kB / 328.6 MB, free: 40.37 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 2.324e-06/0.229, allocations: 0 / 328.6 MB, free: 40.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.002074/0.2311, allocations: 1.153 MB / 329.7 MB, free: 39.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.2311, allocations: 63.33 kB / 329.8 MB, free: 39.14 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002884/0.234, allocations: 3.123 MB / 332.9 MB, free: 36.02 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.234, allocations: 37.7 kB / 333 MB, free: 35.97 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009051/0.235, allocations: 1.59 MB / 334.6 MB, free: 34.37 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.2351, allocations: 166.6 kB / 334.7 MB, free: 34.21 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002472/0.2353, allocations: 226.4 kB / 334.9 MB, free: 33.98 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.059e-05/0.2354, allocations: 341.9 kB / 335.3 MB, free: 33.64 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004974/0.2358, allocations: 248.6 kB / 335.5 MB, free: 33.4 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005946/0.2364, allocations: 0.5999 MB / 336.1 MB, free: 32.63 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.2376, allocations: 0.8967 MB / 337 MB, free: 31.58 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.2376, allocations: 6.938 kB / 337 MB, free: 31.58 MB / 282.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001858/0.2394, allocations: 1.304 MB / 338.3 MB, free: 30.28 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.2394, allocations: 16.44 kB / 338.3 MB, free: 30.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.292e-05/0.2395, allocations: 80 kB / 338.4 MB, free: 30.19 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.2396, allocations: 16.98 kB / 338.4 MB, free: 30.17 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006505/0.2402, allocations: 204.2 kB / 338.6 MB, free: 29.97 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.693e-05/0.2402, allocations: 27.92 kB / 338.7 MB, free: 29.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.2413, allocations: 110.7 kB / 338.8 MB, free: 29.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.592e-05/0.2414, allocations: 68 kB / 338.8 MB, free: 29.77 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000568/0.242, allocations: 457.5 kB / 339.3 MB, free: 29.32 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003337/0.2423, allocations: 433.3 kB / 339.7 MB, free: 28.89 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002304/0.2446, allocations: 1.224 MB / 340.9 MB, free: 27.69 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.2446, allocations: 8 kB / 340.9 MB, free: 27.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2446, allocations: 0 / 340.9 MB, free: 27.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2446, allocations: 3.984 kB / 340.9 MB, free: 27.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002753/0.2474, allocations: 1.986 MB / 342.9 MB, free: 25.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.94e-05/0.2474, allocations: 75.92 kB / 343 MB, free: 25.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004379/0.2479, allocations: 83.92 kB / 343.1 MB, free: 25.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.2479, allocations: 4.062 kB / 343.1 MB, free: 25.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.767e-05/0.2479, allocations: 36 kB / 343.1 MB, free: 25.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.2479, allocations: 7.938 kB / 343.1 MB, free: 25.44 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2479, allocations: 3.938 kB / 343.1 MB, free: 25.43 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/0.2499, allocations: 1.36 MB / 344.5 MB, free: 24.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006347/0.2505, allocations: 455 kB / 344.9 MB, free: 23.6 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003043/0.2508, allocations: 11.98 kB / 345 MB, free: 23.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007082/0.2515, allocations: 27.97 kB / 345 MB, free: 23.56 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.2516, allocations: 70.67 kB / 345 MB, free: 23.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.952e-05/0.2517, allocations: 36 kB / 345.1 MB, free: 23.46 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001864/0.2536, allocations: 2.023 MB / 347.1 MB, free: 21.45 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2536, allocations: 3.938 kB / 347.1 MB, free: 21.44 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00114/0.2547, allocations: 0.6047 MB / 347.7 MB, free: 20.84 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008842/0.2556, allocations: 0.8351 MB / 348.5 MB, free: 20 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.2569, allocations: 0.7786 MB / 349.3 MB, free: 19.2 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2569, allocations: 0 / 349.3 MB, free: 19.2 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006169/0.2575, allocations: 423.8 kB / 349.7 MB, free: 18.76 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/0.2592, allocations: 0.5664 MB / 350.3 MB, free: 18.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004742/0.264, allocations: 4.628 MB / 354.9 MB, free: 13.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007231/0.2647, allocations: 1.17 MB / 356.1 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0008838/0.2656, allocations: 359.8 kB / 356.5 MB, free: 11.94 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.2658, allocations: 148.5 kB / 356.6 MB, free: 11.79 MB / 282.7 MB Notification: Performance of SimCode: time 9.21e-07/0.2658, allocations: 4 kB / 356.6 MB, free: 11.79 MB / 282.7 MB Notification: Performance of Templates: time 0.05823/0.324, allocations: 33.4 MB / 390 MB, free: 10.35 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.504446692066267]