Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001964/0.001964, allocations: 87.67 kB / 20.96 MB, free: 3.441 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.002151/0.002151, allocations: 161.3 kB / 24.27 MB, free: 136 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.621/1.621, allocations: 177.1 MB / 204.6 MB, free: 5.586 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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.8e-05, allocations: 2.312 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01948/0.0195, allocations: 13.99 MB / 286.3 MB, free: 3.781 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1621/0.1816, allocations: 19.73 MB / 306 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003435/0.1851, allocations: 136.3 kB / 306.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00394/0.189, allocations: 1.148 MB / 307.3 MB, free: 9.801 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008963/0.198, allocations: 2.429 MB / 309.7 MB, free: 8.293 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005675/0.2037, allocations: 1.445 MB / 311.2 MB, free: 7.297 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009624/0.2133, allocations: 6.771 MB / 318 MB, free: 3.992 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006909/0.214, allocations: 262.1 kB / 318.2 MB, free: 3.816 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002111/0.2161, allocations: 1.569 MB / 319.8 MB, free: 2.285 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009363/0.217, allocations: 0.7901 MB / 320.6 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001961/0.2172, allocations: 79.92 kB / 320.6 MB, free: 1.414 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003755/0.221, allocations: 1.21 MB / 321.9 MB, free: 208 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003811/0.2213, allocations: 333.6 kB / 322.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001672/0.223, allocations: 0.7398 MB / 322.9 MB, free: 15.13 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007176/0.2302, allocations: 3.768 MB / 326.7 MB, free: 11.35 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.2302, allocations: 0 / 326.7 MB, free: 11.35 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2302, allocations: 0 / 326.7 MB, free: 11.35 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001008/0.2303, allocations: 0 / 326.7 MB, free: 11.35 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.007341/0.2376, allocations: 4.071 MB / 330.8 MB, free: 7.215 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.2377, allocations: 8.031 kB / 330.8 MB, free: 7.207 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007779/0.2385, allocations: 457.4 kB / 331.2 MB, free: 6.758 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004906/0.2434, allocations: 2.583 MB / 333.8 MB, free: 4.078 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.889e-05/0.2434, allocations: 37 kB / 333.8 MB, free: 4.039 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/0.2436, allocations: 63.94 kB / 333.9 MB, free: 3.977 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.245, allocations: 0.6367 MB / 334.5 MB, free: 3.336 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.245, allocations: 0 / 334.5 MB, free: 3.336 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.892e-05/0.2451, allocations: 27.88 kB / 334.6 MB, free: 3.309 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.142e-05/0.2451, allocations: 19.98 kB / 334.6 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001597/0.2467, allocations: 0.707 MB / 335.3 MB, free: 2.586 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007071/0.2538, allocations: 3.339 MB / 338.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.2549, allocations: 441.3 kB / 339.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000959/0.2558, allocations: 493.7 kB / 339.5 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0325/0.2884, allocations: 15.39 MB / 354.9 MB, free: 14.47 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007558/0.2891, allocations: 355.5 kB / 355.3 MB, free: 14.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.245e-06/0.2891, allocations: 0 / 355.3 MB, free: 14.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.002381/0.2915, allocations: 1.058 MB / 356.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.335e-05/0.2916, allocations: 67.34 kB / 356.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005543/0.2971, allocations: 3.935 MB / 360.3 MB, free: 9.004 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.2972, allocations: 37.7 kB / 360.4 MB, free: 8.961 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002119/0.2993, allocations: 1.795 MB / 362.2 MB, free: 7.156 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002626/0.2996, allocations: 178.6 kB / 362.3 MB, free: 6.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004378/0.3, allocations: 264 kB / 362.6 MB, free: 6.715 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003095/0.3003, allocations: 0.5238 MB / 363.1 MB, free: 6.184 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.3009, allocations: 221.9 kB / 363.3 MB, free: 5.965 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.302, allocations: 0.7565 MB / 364.1 MB, free: 4.965 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.3037, allocations: 1.034 MB / 365.1 MB, free: 3.699 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.757e-06/0.3037, allocations: 4 kB / 365.1 MB, free: 3.695 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002577/0.3063, allocations: 1.245 MB / 366.4 MB, free: 2.445 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.3063, allocations: 15.94 kB / 366.4 MB, free: 2.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001279/0.3065, allocations: 83.98 kB / 366.5 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.381e-05/0.3065, allocations: 16 kB / 366.5 MB, free: 2.332 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007658/0.3073, allocations: 204.3 kB / 366.7 MB, free: 2.133 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.101e-05/0.3073, allocations: 23.88 kB / 366.7 MB, free: 2.109 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.3084, allocations: 99.34 kB / 366.8 MB, free: 2.012 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.3085, allocations: 68.06 kB / 366.9 MB, free: 1.945 MB / 314.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.0009083/0.3094, allocations: 480.2 kB / 367.3 MB, free: 1.465 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006335/0.31, allocations: 413.5 kB / 367.8 MB, free: 1.059 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002977/0.313, allocations: 1.154 MB / 368.9 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.313, allocations: 7.938 kB / 368.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.313, allocations: 7.312 kB / 368.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.313, allocations: 3.984 kB / 368.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004806/0.3179, allocations: 2.547 MB / 371.5 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001294/0.318, allocations: 68 kB / 371.5 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004731/0.3185, allocations: 87.86 kB / 371.6 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.3185, allocations: 12 kB / 371.6 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-05/0.3185, allocations: 35.94 kB / 371.7 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.613e-06/0.3185, allocations: 4 kB / 371.7 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3185, allocations: 0 / 371.7 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002964/0.3215, allocations: 1.32 MB / 373 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.3226, allocations: 447.2 kB / 373.4 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003141/0.3229, allocations: 11.94 kB / 373.4 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006407/0.3236, allocations: 19.98 kB / 373.5 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.3238, allocations: 67.86 kB / 373.5 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.263e-05/0.3238, allocations: 36 kB / 373.6 MB, free: 11.15 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003739/0.3276, allocations: 2.216 MB / 375.8 MB, free: 8.938 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3276, allocations: 0 / 375.8 MB, free: 8.938 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001584/0.3292, allocations: 0.593 MB / 376.4 MB, free: 8.344 MB / 330.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.001402/0.3306, allocations: 0.8364 MB / 377.2 MB, free: 7.504 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.3323, allocations: 0.7861 MB / 378 MB, free: 6.688 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3323, allocations: 0 / 378 MB, free: 6.688 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007703/0.333, allocations: 431.9 kB / 378.4 MB, free: 6.238 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/0.3359, allocations: 0.6376 MB / 379.1 MB, free: 5.605 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007537/0.3434, allocations: 4.402 MB / 383.5 MB, free: 1.133 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.3447, allocations: 1.113 MB / 384.6 MB, free: 15.99 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001183/0.3459, allocations: 357.1 kB / 384.9 MB, free: 15.63 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002626/0.3461, allocations: 148.5 kB / 385.1 MB, free: 15.48 MB / 346.7 MB Notification: Performance of SimCode: time 1.443e-06/0.3461, allocations: 0 / 385.1 MB, free: 15.48 MB / 346.7 MB Notification: Performance of Templates: time 0.06376/0.4099, allocations: 32.47 MB / 417.5 MB, free: 15.52 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.715105360024609]