Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.002/0.002, allocations: 91.61 kB / 20.96 MB, free: 3.457 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.002041/0.002041, allocations: 165.3 kB / 24.27 MB, free: 152 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.57/1.57, allocations: 177.1 MB / 204.6 MB, free: 5.617 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.InvertersExtendedModel,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.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_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.51e-05/2.634e-05, allocations: 2.312 kB / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01853/0.01855, allocations: 14.6 MB / 286.9 MB, free: 3.195 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1611/0.1797, allocations: 19.8 MB / 306.7 MB, free: 9.953 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002976/0.1827, allocations: 135.8 kB / 306.8 MB, free: 9.859 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003787/0.1865, allocations: 1.175 MB / 308 MB, free: 9.285 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008716/0.1952, allocations: 2.477 MB / 310.5 MB, free: 7.738 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006048/0.2012, allocations: 1.437 MB / 311.9 MB, free: 6.672 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01023/0.2115, allocations: 6.912 MB / 318.8 MB, free: 3.266 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000749/0.2122, allocations: 266.8 kB / 319.1 MB, free: 2.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002426/0.2146, allocations: 1.613 MB / 320.7 MB, free: 1.363 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009308/0.2156, allocations: 0.8134 MB / 321.5 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001907/0.2157, allocations: 72 kB / 321.6 MB, free: 488 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004427/0.2202, allocations: 1.206 MB / 322.8 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004588/0.2206, allocations: 345.4 kB / 323.1 MB, free: 14.93 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001697/0.2223, allocations: 0.767 MB / 323.9 MB, free: 14.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007769/0.2301, allocations: 3.966 MB / 327.9 MB, free: 10.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.2301, allocations: 0 / 327.9 MB, free: 10.18 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2301, allocations: 0 / 327.9 MB, free: 10.18 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001353/0.2302, allocations: 4 kB / 327.9 MB, free: 10.18 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.007891/0.2381, allocations: 4.247 MB / 332.1 MB, free: 5.863 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.2382, allocations: 12.03 kB / 332.1 MB, free: 5.852 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000755/0.2389, allocations: 473.2 kB / 332.6 MB, free: 5.387 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005124/0.2441, allocations: 2.656 MB / 335.3 MB, free: 2.637 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.959e-05/0.2441, allocations: 33 kB / 335.3 MB, free: 2.602 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.2443, allocations: 59.94 kB / 335.3 MB, free: 2.543 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.2457, allocations: 0.6328 MB / 336 MB, free: 1.906 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.2457, allocations: 0 / 336 MB, free: 1.906 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-05/0.2458, allocations: 23.94 kB / 336 MB, free: 1.883 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.101e-05/0.2458, allocations: 19.98 kB / 336 MB, free: 1.863 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.2474, allocations: 0.7031 MB / 336.7 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007229/0.2546, allocations: 3.422 MB / 340.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.256, allocations: 453.2 kB / 340.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000945/0.2569, allocations: 497.7 kB / 341.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03205/0.289, allocations: 15.4 MB / 356.5 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007946/0.2898, allocations: 363.5 kB / 356.8 MB, free: 12.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.815e-06/0.2898, allocations: 0 / 356.8 MB, free: 12.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.002679/0.2925, allocations: 1.085 MB / 357.9 MB, free: 11.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.227e-05/0.2925, allocations: 59.34 kB / 358 MB, free: 11.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006526/0.299, allocations: 4.163 MB / 362.1 MB, free: 7.238 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.2992, allocations: 37.7 kB / 362.2 MB, free: 7.195 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002127/0.3013, allocations: 1.91 MB / 364.1 MB, free: 5.277 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002556/0.3016, allocations: 182.6 kB / 364.3 MB, free: 5.098 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004092/0.302, allocations: 248 kB / 364.5 MB, free: 4.848 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003195/0.3023, allocations: 0.5277 MB / 365 MB, free: 4.312 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00059/0.3029, allocations: 217.9 kB / 365.2 MB, free: 4.098 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/0.304, allocations: 0.7525 MB / 366 MB, free: 3.102 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001715/0.3057, allocations: 1.045 MB / 367 MB, free: 1.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/0.3057, allocations: 4.625 kB / 367 MB, free: 1.816 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002691/0.3084, allocations: 1.271 MB / 368.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.3085, allocations: 8 kB / 368.3 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002335/0.3087, allocations: 80 kB / 368.4 MB, free: 468 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.45e-05/0.3087, allocations: 20 kB / 368.4 MB, free: 448 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007418/0.3095, allocations: 199.7 kB / 368.6 MB, free: 248 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.56e-05/0.3095, allocations: 31.8 kB / 368.6 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.3106, allocations: 110.3 kB / 368.8 MB, free: 108 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.3107, allocations: 64 kB / 368.8 MB, free: 44 kB / 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.0009577/0.3117, allocations: 496.2 kB / 369.3 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005459/0.3122, allocations: 429.4 kB / 369.7 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002774/0.315, allocations: 1.175 MB / 370.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.315, allocations: 7.984 kB / 370.9 MB, free: 13.94 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.315, allocations: 3.938 kB / 370.9 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.315, allocations: 4 kB / 370.9 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004721/0.3197, allocations: 2.632 MB / 373.5 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001081/0.3199, allocations: 71.98 kB / 373.6 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004737/0.3203, allocations: 91.94 kB / 373.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.3203, allocations: 0 / 373.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.626e-05/0.3204, allocations: 31.94 kB / 373.7 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.125e-06/0.3204, allocations: 7.984 kB / 373.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.3204, allocations: 0 / 373.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002401/0.3228, allocations: 1.357 MB / 375.1 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/0.3239, allocations: 451 kB / 375.5 MB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003031/0.3242, allocations: 11.94 kB / 375.5 MB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007332/0.3249, allocations: 23.97 kB / 375.6 MB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/0.3251, allocations: 67.88 kB / 375.6 MB, free: 9.109 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.76e-05/0.3252, allocations: 39.98 kB / 375.7 MB, free: 9.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003595/0.3288, allocations: 2.339 MB / 378 MB, free: 6.738 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3288, allocations: 0 / 378 MB, free: 6.738 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001589/0.3303, allocations: 0.6008 MB / 378.6 MB, free: 6.137 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.001374/0.3317, allocations: 0.8412 MB / 379.5 MB, free: 5.293 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001708/0.3334, allocations: 0.7974 MB / 380.3 MB, free: 4.465 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3334, allocations: 0 / 380.3 MB, free: 4.465 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007683/0.3342, allocations: 428.3 kB / 380.7 MB, free: 4.016 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002925/0.3371, allocations: 0.6654 MB / 381.3 MB, free: 3.355 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007326/0.3444, allocations: 4.604 MB / 385.9 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/0.3457, allocations: 1.162 MB / 387.1 MB, free: 13.48 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001105/0.3468, allocations: 353.3 kB / 387.5 MB, free: 13.13 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002672/0.3471, allocations: 164.5 kB / 387.6 MB, free: 12.97 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/0.3471, allocations: 0 / 387.6 MB, free: 12.97 MB / 346.7 MB Notification: Performance of Templates: time 0.08946/0.4366, allocations: 33.29 MB / 420.9 MB, free: 12.23 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.957774831913412]