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.001861/0.001861, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 14.72 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.002209/0.002209, allocations: 164 kB / 24.49 MB, free: 3.453 MB / 14.72 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.44/1.44, allocations: 177.2 MB / 204.9 MB, free: 9.047 MB / 190.1 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 0.001554/0.001554, allocations: 55.31 kB / 325.6 MB, free: 300 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08611/0.08766, allocations: 53.34 MB / 378.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0141/0.1018, allocations: 12.9 MB / 391.8 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02284/0.1246, allocations: 17.97 MB / 409.8 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001294/0.1259, allocations: 138.4 kB / 409.9 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002565/0.1285, allocations: 1.161 MB / 411.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005471/0.1339, allocations: 2.402 MB / 413.5 MB, free: 13.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003328/0.1373, allocations: 1.414 MB / 414.9 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009477/0.1467, allocations: 6.754 MB / 421.6 MB, free: 4.812 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004924/0.1472, allocations: 270.3 kB / 421.9 MB, free: 4.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001423/0.1487, allocations: 1.186 MB / 423.1 MB, free: 3.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001437/0.1501, allocations: 1.094 MB / 424.2 MB, free: 2.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001954/0.1503, allocations: 76 kB / 424.2 MB, free: 2.152 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002866/0.1531, allocations: 1.206 MB / 425.4 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000347/0.1535, allocations: 337.5 kB / 425.8 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.1546, allocations: 1.048 MB / 426.8 MB, free: 15.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004759/0.1594, allocations: 4.048 MB / 430.9 MB, free: 11.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1594, allocations: 0 / 430.9 MB, free: 11.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1594, allocations: 0 / 430.9 MB, free: 11.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.611e-05/0.1594, allocations: 0 / 430.9 MB, free: 11.49 MB / 398.1 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.005545/0.165, allocations: 3.878 MB / 434.8 MB, free: 7.555 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.165, allocations: 12.03 kB / 434.8 MB, free: 7.543 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004751/0.1655, allocations: 433.3 kB / 435.2 MB, free: 7.117 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003778/0.1693, allocations: 2.349 MB / 437.5 MB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.1693, allocations: 37 kB / 437.6 MB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.1694, allocations: 55.89 kB / 437.6 MB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.1709, allocations: 0.7304 MB / 438.4 MB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.1709, allocations: 0 / 438.4 MB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.879e-05/0.171, allocations: 27.98 kB / 438.4 MB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.497e-05/0.171, allocations: 19.98 kB / 438.4 MB, free: 3.797 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00167/0.1727, allocations: 0.8202 MB / 439.2 MB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005122/0.1778, allocations: 2.796 MB / 442 MB, free: 132 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.179, allocations: 0.5242 MB / 442.5 MB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.1801, allocations: 0.5701 MB / 443.1 MB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02559/0.2057, allocations: 13.73 MB / 456.8 MB, free: 0.9023 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008037/0.2065, allocations: 370 kB / 457.2 MB, free: 0.5312 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.314e-06/0.2065, allocations: 0 / 457.2 MB, free: 0.5312 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002337/0.2088, allocations: 1.128 MB / 458.3 MB, free: 15.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.2089, allocations: 55.41 kB / 458.4 MB, free: 15.32 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0038/0.2127, allocations: 3.106 MB / 461.5 MB, free: 12.22 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.199e-05/0.2127, allocations: 37.7 kB / 461.5 MB, free: 12.18 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001501/0.2142, allocations: 1.582 MB / 463.1 MB, free: 10.59 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.2144, allocations: 178.6 kB / 463.3 MB, free: 10.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/0.2147, allocations: 226.4 kB / 463.5 MB, free: 10.18 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2148, allocations: 341.9 kB / 463.8 MB, free: 9.844 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006111/0.2154, allocations: 241.9 kB / 464.1 MB, free: 9.605 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000935/0.2164, allocations: 0.6095 MB / 464.7 MB, free: 8.82 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.218, allocations: 0.8984 MB / 465.6 MB, free: 7.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.218, allocations: 4 kB / 465.6 MB, free: 7.746 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002231/0.2203, allocations: 1.267 MB / 466.9 MB, free: 6.473 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.2203, allocations: 12 kB / 466.9 MB, free: 6.461 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/0.2204, allocations: 84.83 kB / 466.9 MB, free: 6.379 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.756e-05/0.2204, allocations: 16 kB / 467 MB, free: 6.363 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007592/0.2212, allocations: 203.7 kB / 467.2 MB, free: 6.164 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.44e-05/0.2212, allocations: 23.88 kB / 467.2 MB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009046/0.2221, allocations: 115.2 kB / 467.3 MB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.2222, allocations: 68 kB / 467.4 MB, free: 5.961 MB / 430.1 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.000692/0.2229, allocations: 453.4 kB / 467.8 MB, free: 5.508 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004263/0.2234, allocations: 421.4 kB / 468.2 MB, free: 5.094 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002711/0.2261, allocations: 1.204 MB / 469.4 MB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.874e-06/0.2261, allocations: 4 kB / 469.4 MB, free: 3.883 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2261, allocations: 0 / 469.4 MB, free: 3.883 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.2261, allocations: 3.984 kB / 469.4 MB, free: 3.879 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003436/0.2295, allocations: 1.985 MB / 471.4 MB, free: 1.844 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001035/0.2296, allocations: 68 kB / 471.5 MB, free: 1.777 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005148/0.2301, allocations: 95.92 kB / 471.6 MB, free: 1.684 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.17e-05/0.2301, allocations: 7.984 kB / 471.6 MB, free: 1.676 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.778e-05/0.2302, allocations: 32 kB / 471.6 MB, free: 1.645 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.2302, allocations: 7.938 kB / 471.6 MB, free: 1.637 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2302, allocations: 4 kB / 471.6 MB, free: 1.633 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002462/0.2327, allocations: 1.344 MB / 473 MB, free: 268 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1659/0.3986, allocations: 440.7 kB / 473.4 MB, free: 88.05 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003728/0.399, allocations: 11.48 kB / 473.4 MB, free: 88.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007217/0.3997, allocations: 33.77 kB / 473.4 MB, free: 88.05 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.3998, allocations: 59.61 kB / 473.5 MB, free: 88.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.762e-05/0.3999, allocations: 37.45 kB / 473.5 MB, free: 88.05 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002609/0.4025, allocations: 2.01 MB / 475.6 MB, free: 87.87 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4025, allocations: 0 / 475.6 MB, free: 87.87 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001193/0.4037, allocations: 0.5985 MB / 476.2 MB, free: 87.87 MB / 430.1 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.0009178/0.4047, allocations: 0.7841 MB / 476.9 MB, free: 87.78 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.4061, allocations: 0.7762 MB / 477.7 MB, free: 87.64 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.4061, allocations: 2.875 kB / 477.7 MB, free: 87.64 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007317/0.4069, allocations: 428 kB / 478.1 MB, free: 87.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/0.4092, allocations: 0.6338 MB / 478.8 MB, free: 87.33 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005081/0.4143, allocations: 4.59 MB / 483.4 MB, free: 85.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.4154, allocations: 1.162 MB / 484.5 MB, free: 84.84 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009525/0.4163, allocations: 363.3 kB / 484.9 MB, free: 84.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/0.4165, allocations: 155.1 kB / 485 MB, free: 84.75 MB / 430.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4165, allocations: 1.531 kB / 485 MB, free: 84.75 MB / 430.1 MB Notification: Performance of Templates: time 0.04411/0.4606, allocations: 33.38 MB / 0.5063 GB, free: 55.62 MB / 430.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/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.483037823927589]