Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001137/0.001137, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001139/0.002276, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007541/0.0007541, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009757/0.00173, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.962/0.962, allocations: 177.5 MB / 190 MB, free: 4.805 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07584/1.038, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.909e-05/2.089e-05, allocations: 2.312 kB / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02264/0.02266, allocations: 24.84 MB / 270 MB, free: 4.641 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1392/0.1619, allocations: 21.75 MB / 291.8 MB, free: 15.52 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00389/0.1658, allocations: 269.3 kB / 292.1 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003339/0.1691, allocations: 1.748 MB / 293.8 MB, free: 14.55 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01/0.1791, allocations: 3.397 MB / 297.2 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005963/0.1851, allocations: 1.583 MB / 298.8 MB, free: 12.14 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01398/0.1991, allocations: 13.14 MB / 311.9 MB, free: 4.5 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001149/0.2002, allocations: 0.5601 MB / 312.5 MB, free: 3.902 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006688/0.2069, allocations: 6.858 MB / 319.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001783/0.2087, allocations: 1.563 MB / 320.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003952/0.2091, allocations: 132 kB / 321 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003562/0.2126, allocations: 1.331 MB / 322.4 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003403/0.213, allocations: 0.4919 MB / 322.9 MB, free: 9.621 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001369/0.2144, allocations: 1.297 MB / 324.1 MB, free: 8.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004337/0.2187, allocations: 4.387 MB / 328.5 MB, free: 4.016 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.397e-05/0.2187, allocations: 0 / 328.5 MB, free: 4.016 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2187, allocations: 0 / 328.5 MB, free: 4.016 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000193/0.2189, allocations: 0 / 328.5 MB, free: 4.016 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.006224/0.2251, allocations: 8.009 MB / 336.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.2252, allocations: 12.62 kB / 336.6 MB, free: 11.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005561/0.2257, allocations: 0.5303 MB / 337.1 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003752/0.2295, allocations: 3.916 MB / 341 MB, free: 7.305 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.614e-05/0.2295, allocations: 69.94 kB / 341.1 MB, free: 7.238 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.2296, allocations: 103.9 kB / 341.2 MB, free: 7.137 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008599/0.2305, allocations: 0.7852 MB / 342 MB, free: 6.328 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.2305, allocations: 0 / 342 MB, free: 6.328 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.86e-05/0.2306, allocations: 36 kB / 342 MB, free: 6.293 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.584e-05/0.2306, allocations: 39.97 kB / 342 MB, free: 6.254 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006085/0.2312, allocations: 435.1 kB / 342.5 MB, free: 5.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003741/0.235, allocations: 2.897 MB / 345.4 MB, free: 2.883 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004545/0.2354, allocations: 477.5 kB / 345.8 MB, free: 2.406 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004918/0.2359, allocations: 0.6285 MB / 346.5 MB, free: 1.773 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04605/0.282, allocations: 45.4 MB / 391.8 MB, free: 2.676 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003948/0.2824, allocations: 334.1 kB / 392.2 MB, free: 2.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.985e-06/0.2824, allocations: 0 / 392.2 MB, free: 2.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.001053/0.2834, allocations: 0.8478 MB / 393 MB, free: 1.488 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.2834, allocations: 64.05 kB / 393.1 MB, free: 1.414 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003292/0.2867, allocations: 5.067 MB / 398.2 MB, free: 12.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.386e-05/0.2868, allocations: 41.64 kB / 398.2 MB, free: 12.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000743/0.2875, allocations: 1.389 MB / 399.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/0.2877, allocations: 313.4 kB / 399.9 MB, free: 10.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002924/0.288, allocations: 346.9 kB / 400.2 MB, free: 10.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.615e-05/0.2881, allocations: 301.1 kB / 400.5 MB, free: 9.969 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.2883, allocations: 141.4 kB / 400.7 MB, free: 9.832 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007157/0.289, allocations: 0.8408 MB / 401.5 MB, free: 8.656 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008878/0.2899, allocations: 1.236 MB / 402.7 MB, free: 7.086 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.21e-05/0.2899, allocations: 11.94 kB / 402.7 MB, free: 7.074 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001297/0.2912, allocations: 1.283 MB / 404 MB, free: 5.785 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.2912, allocations: 16 kB / 404 MB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.61e-05/0.2913, allocations: 43.98 kB / 404.1 MB, free: 5.727 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.057e-05/0.2913, allocations: 32 kB / 404.1 MB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007286/0.2921, allocations: 419.6 kB / 404.5 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.228e-05/0.2921, allocations: 53.42 kB / 404.6 MB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009344/0.293, allocations: 178.8 kB / 404.8 MB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.2932, allocations: 68 kB / 404.8 MB, free: 4.992 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0004569/0.2936, allocations: 225.1 kB / 405 MB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003722/0.294, allocations: 475.3 kB / 405.5 MB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001831/0.2958, allocations: 1.472 MB / 407 MB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.2958, allocations: 8.875 kB / 407 MB, free: 2.812 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.2958, allocations: 0 / 407 MB, free: 2.812 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2958, allocations: 3.984 kB / 407 MB, free: 2.809 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003077/0.2989, allocations: 2.776 MB / 409.8 MB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.212e-05/0.299, allocations: 16 kB / 409.8 MB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004305/0.2994, allocations: 187.8 kB / 410 MB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006954/0.3001, allocations: 0.7409 MB / 410.7 MB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.3001, allocations: 4 kB / 410.7 MB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.066e-05/0.3002, allocations: 19.92 kB / 410.7 MB, free: 15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.3002, allocations: 7.938 kB / 410.7 MB, free: 15 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3002, allocations: 3.984 kB / 410.7 MB, free: 14.99 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000936/0.3011, allocations: 1.06 MB / 411.8 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002679/0.3014, allocations: 19.98 kB / 411.8 MB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005187/0.3019, allocations: 23.92 kB / 411.8 MB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.302, allocations: 60.55 kB / 411.9 MB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.395e-05/0.3021, allocations: 28 kB / 411.9 MB, free: 13.79 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001875/0.304, allocations: 2.724 MB / 414.7 MB, free: 11.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.304, allocations: 4 kB / 414.7 MB, free: 11.08 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001368/0.3053, allocations: 1.085 MB / 415.7 MB, free: 9.996 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001335/0.3067, allocations: 1.455 MB / 417.2 MB, free: 8.531 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008406/0.3075, allocations: 0.8644 MB / 418.1 MB, free: 7.625 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.556e-05/0.3076, allocations: 100.5 kB / 418.2 MB, free: 7.531 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004088/0.308, allocations: 478 kB / 418.6 MB, free: 7.008 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.09626/0.4042, allocations: 12.11 MB / 430.7 MB, free: 121.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/0.4159, allocations: 7.631 MB / 438.4 MB, free: 117.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006561/0.4165, allocations: 0.7046 MB / 439.1 MB, free: 117.4 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0014/0.4179, allocations: 0.6858 MB / 439.8 MB, free: 117.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001483/0.4194, allocations: 1.071 MB / 440.8 MB, free: 117.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.553e-06/0.4194, allocations: 0 / 440.8 MB, free: 117.2 MB / 394.7 MB Notification: Performance of Templates: time 0.0637/0.4831, allocations: 68.45 MB / 0.4973 GB, free: 58.71 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.030079289339483]