Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.007434/0.007434, allocations: 105.6 kB / 21.98 MB, free: 5.223 MB / 14.72 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.001842/0.001842, allocations: 212.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.454/1.454, allocations: 230.6 MB / 259 MB, free: 8.051 MB / 206.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-beta.om/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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 68.55 kB / 379.8 MB, free: 2.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2863, allocations: 53.35 MB / 433.2 MB, free: 6.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01678/0.3031, allocations: 15.38 MB / 448.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02832/0.3314, allocations: 20.87 MB / 469.4 MB, free: 2.605 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00322/0.3346, allocations: 134.5 kB / 469.5 MB, free: 2.473 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003898/0.3385, allocations: 1.262 MB / 470.8 MB, free: 1.207 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009036/0.3475, allocations: 2.421 MB / 473.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00541/0.3529, allocations: 1.461 MB / 474.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01233/0.3653, allocations: 6.727 MB / 481.4 MB, free: 6.555 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008014/0.3661, allocations: 278.2 kB / 481.7 MB, free: 6.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002046/0.3681, allocations: 1.174 MB / 482.9 MB, free: 5.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001684/0.3698, allocations: 1.149 MB / 484 MB, free: 3.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000196/0.37, allocations: 72 kB / 484.1 MB, free: 3.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004411/0.3744, allocations: 1.479 MB / 485.6 MB, free: 2.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004773/0.3749, allocations: 341.5 kB / 485.9 MB, free: 2.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001788/0.3767, allocations: 1.432 MB / 487.3 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006595/0.3833, allocations: 4.001 MB / 491.3 MB, free: 12.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3833, allocations: 4 kB / 491.3 MB, free: 12.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3833, allocations: 0 / 491.3 MB, free: 12.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.312e-05/0.3833, allocations: 0 / 491.3 MB, free: 12.57 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.006286/0.3896, allocations: 3.894 MB / 495.2 MB, free: 8.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.3897, allocations: 8.031 kB / 495.2 MB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005276/0.3902, allocations: 433.3 kB / 495.6 MB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003899/0.3941, allocations: 2.345 MB / 498 MB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.3941, allocations: 37 kB / 498 MB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.3943, allocations: 51.95 kB / 498.1 MB, free: 5.652 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.3957, allocations: 0.7382 MB / 498.8 MB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.3957, allocations: 0 / 498.8 MB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.544e-05/0.3958, allocations: 20 kB / 498.8 MB, free: 4.891 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.192e-05/0.3958, allocations: 19.98 kB / 498.9 MB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.3975, allocations: 0.8241 MB / 499.7 MB, free: 4.047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005623/0.4031, allocations: 3.05 MB / 0.491 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.4043, allocations: 0.5164 MB / 0.4915 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009953/0.4053, allocations: 0.5662 MB / 0.492 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02593/0.4312, allocations: 13.79 MB / 0.5055 GB, free: 1.656 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000808/0.432, allocations: 365.6 kB / 0.5058 GB, free: 1.285 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.026e-06/0.432, allocations: 0 / 0.5058 GB, free: 1.285 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002567/0.4346, allocations: 1.13 MB / 0.5069 GB, free: 152 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.4346, allocations: 63.41 kB / 0.507 GB, free: 76 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004225/0.4388, allocations: 3.083 MB / 0.51 GB, free: 12.99 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001199/0.439, allocations: 41.69 kB / 0.51 GB, free: 12.95 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001447/0.4404, allocations: 1.582 MB / 0.5116 GB, free: 11.36 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.4406, allocations: 178.5 kB / 0.5118 GB, free: 11.18 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003222/0.4409, allocations: 230.4 kB / 0.512 GB, free: 10.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.4411, allocations: 337.9 kB / 0.5123 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006319/0.4417, allocations: 241.9 kB / 0.5125 GB, free: 10.38 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009031/0.4426, allocations: 0.6095 MB / 0.5131 GB, free: 9.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001674/0.4443, allocations: 0.8973 MB / 0.514 GB, free: 8.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.649e-06/0.4443, allocations: 11.94 kB / 0.514 GB, free: 8.508 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002268/0.4466, allocations: 1.259 MB / 0.5152 GB, free: 7.242 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.4466, allocations: 14.91 kB / 0.5153 GB, free: 7.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/0.4467, allocations: 83.98 kB / 0.5153 GB, free: 7.148 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.782e-05/0.4467, allocations: 20 kB / 0.5154 GB, free: 7.129 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000725/0.4475, allocations: 199.7 kB / 0.5155 GB, free: 6.934 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.151e-05/0.4475, allocations: 27.86 kB / 0.5156 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000982/0.4485, allocations: 111.3 kB / 0.5157 GB, free: 6.797 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.4486, allocations: 68 kB / 0.5157 GB, free: 6.73 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.0008624/0.4494, allocations: 453.4 kB / 0.5162 GB, free: 6.277 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000431/0.4499, allocations: 421.3 kB / 0.5166 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002663/0.4525, allocations: 1.207 MB / 0.5178 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.4525, allocations: 4 kB / 0.5178 GB, free: 4.645 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4526, allocations: 4 kB / 0.5178 GB, free: 4.641 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.4526, allocations: 3.984 kB / 0.5178 GB, free: 4.637 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003605/0.4562, allocations: 2.118 MB / 0.5198 GB, free: 2.457 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001009/0.4563, allocations: 68 kB / 0.5199 GB, free: 2.391 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004618/0.4567, allocations: 95.86 kB / 0.52 GB, free: 2.297 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.4567, allocations: 4.062 kB / 0.52 GB, free: 2.293 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.968e-05/0.4568, allocations: 31.98 kB / 0.52 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/0.4568, allocations: 4 kB / 0.52 GB, free: 2.258 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4568, allocations: 3.938 kB / 0.52 GB, free: 2.254 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002433/0.4592, allocations: 1.343 MB / 0.5213 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009766/0.4602, allocations: 443.1 kB / 0.5218 GB, free: 464 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002943/0.4605, allocations: 20.06 kB / 0.5218 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006739/0.4612, allocations: 23.97 kB / 0.5218 GB, free: 420 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.4613, allocations: 67.86 kB / 0.5219 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.562e-05/0.4614, allocations: 36 kB / 0.5219 GB, free: 316 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003098/0.4645, allocations: 2.007 MB / 0.5239 GB, free: 14.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4645, allocations: 0 / 0.5239 GB, free: 14.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001788/0.4663, allocations: 0.6008 MB / 0.5245 GB, free: 13.7 MB / 446.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.001239/0.4676, allocations: 0.7845 MB / 0.5252 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.4693, allocations: 0.7755 MB / 0.526 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4693, allocations: 0 / 0.526 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007824/0.4701, allocations: 431.2 kB / 0.5264 GB, free: 11.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002655/0.4727, allocations: 0.6357 MB / 0.527 GB, free: 11.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007691/0.4804, allocations: 4.646 MB / 0.5315 GB, free: 6.332 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001437/0.4818, allocations: 1.722 MB / 0.5332 GB, free: 4.578 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000446/0.4823, allocations: 155.4 kB / 0.5334 GB, free: 4.426 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4823, allocations: 4 kB / 0.5334 GB, free: 4.422 MB / 446.1 MB Notification: Performance of Templates: time 0.253/0.7353, allocations: 38.83 MB / 0.5713 GB, free: 77.99 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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: 11.47310131113045]