Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001063/0.001063, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 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.0009616/0.0009616, allocations: 139.4 kB / 25.59 MB, free: 8.906 MB / 18.57 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 0.9472/0.9472, allocations: 173.4 MB / 202.2 MB, free: 8.277 MB / 186.7 MB " [Timeout remaining time 179] 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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.253e-05/2.406e-05, allocations: 2.312 kB / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.02925/0.02927, allocations: 14.24 MB / 283.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02539/0.05467, allocations: 19.44 MB / 302.9 MB, free: 8.02 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001609/0.05628, allocations: 138.5 kB / 303 MB, free: 7.883 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002183/0.05846, allocations: 1.172 MB / 304.2 MB, free: 6.699 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006123/0.06458, allocations: 2.483 MB / 306.7 MB, free: 4.199 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003955/0.06854, allocations: 1.441 MB / 308.1 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.009041/0.07758, allocations: 6.959 MB / 315.1 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000697/0.07828, allocations: 270.2 kB / 315.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004021/0.0823, allocations: 3.018 MB / 318.3 MB, free: 8.453 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00137/0.08367, allocations: 0.8486 MB / 319.2 MB, free: 7.602 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002081/0.08387, allocations: 72 kB / 319.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00338/0.08725, allocations: 1.206 MB / 320.5 MB, free: 6.324 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002807/0.08754, allocations: 349.5 kB / 320.8 MB, free: 5.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009634/0.0885, allocations: 0.7631 MB / 321.6 MB, free: 5.215 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003621/0.09212, allocations: 2.879 MB / 324.4 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.09212, allocations: 0 / 324.4 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09213, allocations: 0 / 324.4 MB, free: 2.324 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.006e-05/0.0922, allocations: 4 kB / 324.5 MB, free: 2.32 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004662/0.09686, allocations: 4.128 MB / 328.6 MB, free: 14.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.09689, allocations: 12.03 kB / 328.6 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000499/0.09739, allocations: 473.2 kB / 329.1 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002894/0.1003, allocations: 2.563 MB / 331.6 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.405e-05/0.1003, allocations: 37 kB / 331.7 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.1004, allocations: 63.86 kB / 331.7 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007544/0.1012, allocations: 484.7 kB / 332.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.1012, allocations: 0 / 332.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.246e-05/0.1013, allocations: 23.98 kB / 332.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.988e-05/0.1013, allocations: 20 kB / 332.2 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006261/0.1019, allocations: 428.3 kB / 332.6 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003822/0.1057, allocations: 2.375 MB / 335 MB, free: 7.523 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004412/0.1062, allocations: 289.3 kB / 335.3 MB, free: 7.227 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004286/0.1066, allocations: 377.7 kB / 335.7 MB, free: 6.855 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1181/0.2247, allocations: 15.17 MB / 350.9 MB, free: 60.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002808/0.225, allocations: 267.4 kB / 351.1 MB, free: 60.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.585e-06/0.225, allocations: 0 / 351.1 MB, free: 60.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007376/0.2257, allocations: 0.8256 MB / 351.9 MB, free: 60.63 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.803e-05/0.2257, allocations: 67.47 kB / 352 MB, free: 60.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00184/0.2276, allocations: 3.297 MB / 355.3 MB, free: 60.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.2276, allocations: 37.08 kB / 355.3 MB, free: 60.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007787/0.2284, allocations: 1.779 MB / 357.1 MB, free: 59.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.688e-05/0.2285, allocations: 182.4 kB / 357.3 MB, free: 59.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.2286, allocations: 235.8 kB / 357.5 MB, free: 59.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.094e-05/0.2287, allocations: 0.5164 MB / 358 MB, free: 58.9 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.2288, allocations: 103.9 kB / 358.1 MB, free: 58.89 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.229, allocations: 0.6288 MB / 358.8 MB, free: 58.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004191/0.2294, allocations: 0.8152 MB / 359.6 MB, free: 57.49 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/0.2294, allocations: 3.938 kB / 359.6 MB, free: 57.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0007492/0.2302, allocations: 1.035 MB / 360.6 MB, free: 56.74 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.2302, allocations: 13.72 kB / 360.6 MB, free: 56.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.85e-05/0.2302, allocations: 80 kB / 360.7 MB, free: 56.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.2303, allocations: 22.61 kB / 360.7 MB, free: 56.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003419/0.2306, allocations: 208 kB / 360.9 MB, free: 56.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.2306, allocations: 19.19 kB / 361 MB, free: 56.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004447/0.2311, allocations: 105 kB / 361.1 MB, free: 56.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-05/0.2311, allocations: 56 kB / 361.1 MB, free: 56.33 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.0002617/0.2314, allocations: 223.1 kB / 361.3 MB, free: 56.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.2316, allocations: 441.3 kB / 361.8 MB, free: 55.7 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.2326, allocations: 1.002 MB / 362.8 MB, free: 54.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.2326, allocations: 4 kB / 362.8 MB, free: 54.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.2326, allocations: 0 / 362.8 MB, free: 54.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.2326, allocations: 3 kB / 362.8 MB, free: 54.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.2341, allocations: 2.191 MB / 365 MB, free: 53.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-05/0.2341, allocations: 71.98 kB / 365 MB, free: 53.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002059/0.2343, allocations: 83.78 kB / 365.1 MB, free: 53.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2343, allocations: 0 / 365.1 MB, free: 53.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.2344, allocations: 32 kB / 365.1 MB, free: 53.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.2344, allocations: 4.688 kB / 365.2 MB, free: 53.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2344, allocations: 4.062 kB / 365.2 MB, free: 53.17 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006343/0.235, allocations: 1.065 MB / 366.2 MB, free: 52.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003237/0.2353, allocations: 458.9 kB / 366.7 MB, free: 51.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/0.2355, allocations: 8 kB / 366.7 MB, free: 51.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003389/0.2358, allocations: 18.92 kB / 366.7 MB, free: 51.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-05/0.2359, allocations: 67.92 kB / 366.8 MB, free: 51.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.314e-05/0.2359, allocations: 32 kB / 366.8 MB, free: 51.53 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008175/0.2368, allocations: 1.702 MB / 368.5 MB, free: 50.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2368, allocations: 0 / 368.5 MB, free: 50.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00075/0.2375, allocations: 0.6013 MB / 369.1 MB, free: 49.46 MB / 314.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.0007397/0.2383, allocations: 0.9175 MB / 370 MB, free: 48.73 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004556/0.2387, allocations: 0.5861 MB / 370.6 MB, free: 48.17 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2387, allocations: 0 / 370.6 MB, free: 48.17 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002/0.2389, allocations: 329.8 kB / 370.9 MB, free: 47.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.2402, allocations: 0.6685 MB / 371.6 MB, free: 47.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002978/0.2432, allocations: 4.314 MB / 375.9 MB, free: 42.81 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001837/0.2434, allocations: 402.4 kB / 376.3 MB, free: 42.39 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005291/0.2439, allocations: 359.4 kB / 376.7 MB, free: 42.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007055/0.2446, allocations: 0.7244 MB / 377.4 MB, free: 41.31 MB / 314.7 MB Notification: Performance of SimCode: time 7.61e-07/0.2446, allocations: 0 / 377.4 MB, free: 41.31 MB / 314.7 MB Notification: Performance of Templates: time 0.03847/0.2831, allocations: 38.62 MB / 416 MB, free: 3.418 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.478265658020973]