Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001786/0.001786, allocations: 108.9 kB / 20.37 MB, free: 2.102 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002338/0.002338, allocations: 211.2 kB / 23.54 MB, free: 5.391 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 230.2 MB / 256.8 MB, free: 8.629 MB / 206.1 MB [Timeout remaining time 88] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 63.89 kB / 376.9 MB, free: 3.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2921, allocations: 53.31 MB / 430.2 MB, free: 7.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009261/0.3013, allocations: 8.068 MB / 438.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02423/0.3256, allocations: 19.52 MB / 457.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.3269, allocations: 63.44 kB / 457.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00265/0.3295, allocations: 0.8529 MB / 458.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005986/0.3355, allocations: 1.822 MB / 460.5 MB, free: 9.195 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004403/0.3399, allocations: 1.366 MB / 461.9 MB, free: 7.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005906/0.3458, allocations: 3.308 MB / 465.2 MB, free: 4.504 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003713/0.3462, allocations: 124.7 kB / 465.3 MB, free: 4.359 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009748/0.3472, allocations: 0.5716 MB / 465.9 MB, free: 3.785 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000742/0.3479, allocations: 0.559 MB / 466.4 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.348, allocations: 40 kB / 466.5 MB, free: 3.184 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004045/0.3521, allocations: 1.444 MB / 467.9 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002538/0.3523, allocations: 178.8 kB / 468.1 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008148/0.3531, allocations: 0.6793 MB / 468.8 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003869/0.357, allocations: 2.217 MB / 471 MB, free: 14.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.357, allocations: 0 / 471 MB, free: 14.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.357, allocations: 0 / 471 MB, free: 14.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.074e-05/0.357, allocations: 0 / 471 MB, free: 14.65 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003515/0.3606, allocations: 2.081 MB / 473.1 MB, free: 12.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.3606, allocations: 8.031 kB / 473.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003396/0.361, allocations: 202.7 kB / 473.3 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002193/0.3631, allocations: 1.367 MB / 474.6 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.562e-05/0.3632, allocations: 20.5 kB / 474.7 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-05/0.3633, allocations: 28 kB / 474.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009501/0.3642, allocations: 433.2 kB / 475.1 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.3642, allocations: 3.938 kB / 475.1 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.221e-05/0.3643, allocations: 11.94 kB / 475.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.3643, allocations: 12 kB / 475.1 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.3653, allocations: 474.1 kB / 475.6 MB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002838/0.3682, allocations: 1.619 MB / 477.2 MB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009238/0.3691, allocations: 339.4 kB / 477.6 MB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007972/0.3699, allocations: 381.8 kB / 477.9 MB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01738/0.3873, allocations: 15.52 MB / 493.4 MB, free: 5.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006553/0.3879, allocations: 263.2 kB / 493.7 MB, free: 5.551 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.755e-06/0.3879, allocations: 0 / 493.7 MB, free: 5.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002204/0.3902, allocations: 0.8417 MB / 494.5 MB, free: 4.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.3902, allocations: 71.33 kB / 494.6 MB, free: 4.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002036/0.3922, allocations: 1.448 MB / 496.1 MB, free: 3.113 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.95e-05/0.3923, allocations: 33.7 kB / 496.1 MB, free: 3.074 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006675/0.393, allocations: 0.7232 MB / 496.8 MB, free: 2.344 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.921e-05/0.3931, allocations: 99.22 kB / 496.9 MB, free: 2.246 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.3933, allocations: 134 kB / 497 MB, free: 2.109 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3934, allocations: 322 kB / 497.4 MB, free: 1.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004483/0.3939, allocations: 161 kB / 497.5 MB, free: 1.633 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006157/0.3945, allocations: 359.4 kB / 497.9 MB, free: 1.188 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.3955, allocations: 0.5294 MB / 498.4 MB, free: 0.5664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.3955, allocations: 11.94 kB / 498.4 MB, free: 0.5547 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001585/0.3971, allocations: 0.7485 MB / 499.2 MB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.3971, allocations: 12.16 kB / 499.2 MB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-05/0.3972, allocations: 47.98 kB / 499.2 MB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003394/0.3976, allocations: 124.8 kB / 499.3 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004328/0.398, allocations: 107.8 kB / 499.4 MB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007133/0.3987, allocations: 0.6889 MB / 0.4884 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005853/0.3993, allocations: 71.59 kB / 0.4885 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.404e-05/0.3994, allocations: 36 kB / 0.4885 GB, free: 14.69 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004847/0.3998, allocations: 281 kB / 0.4888 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/0.4001, allocations: 202.8 kB / 0.489 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001877/0.4019, allocations: 0.7386 MB / 0.4897 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.4019, allocations: 0 / 0.4897 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4019, allocations: 3.938 kB / 0.4897 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.402, allocations: 7.984 kB / 0.4897 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.4043, allocations: 1.307 MB / 0.491 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.434e-05/0.4044, allocations: 35.98 kB / 0.491 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002561/0.4046, allocations: 43.95 kB / 0.4911 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002624/0.4049, allocations: 132.8 kB / 0.4912 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.11e-05/0.4049, allocations: 23.94 kB / 0.4912 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006283/0.4056, allocations: 0.6655 MB / 0.4919 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4056, allocations: 0 / 0.4919 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.407, allocations: 0.7141 MB / 0.4926 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004411/0.4074, allocations: 295.7 kB / 0.4928 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.4075, allocations: 4 kB / 0.4928 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004485/0.408, allocations: 27.97 kB / 0.4929 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.4081, allocations: 47.89 kB / 0.4929 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.192e-05/0.4082, allocations: 16 kB / 0.4929 GB, free: 9.996 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001523/0.4097, allocations: 0.961 MB / 0.4939 GB, free: 9.016 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4097, allocations: 4 kB / 0.4939 GB, free: 9.012 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001231/0.4109, allocations: 327.6 kB / 0.4942 GB, free: 8.691 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00113/0.4121, allocations: 0.5731 MB / 0.4947 GB, free: 8.109 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.4136, allocations: 0.5004 MB / 0.4952 GB, free: 7.598 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.4136, allocations: 0 / 0.4952 GB, free: 7.598 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006707/0.4143, allocations: 284.6 kB / 0.4955 GB, free: 7.309 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.4157, allocations: 318.7 kB / 0.4958 GB, free: 6.992 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003805/0.4195, allocations: 2.283 MB / 0.498 GB, free: 4.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008093/0.4203, allocations: 1.145 MB / 0.4992 GB, free: 3.484 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001793/0.4205, allocations: 103.4 kB / 0.4993 GB, free: 3.383 MB / 414.1 MB Notification: Performance of SimCode: time 1.183e-06/0.4205, allocations: 0 / 0.4993 GB, free: 3.383 MB / 414.1 MB Notification: Performance of Templates: time 0.03767/0.4582, allocations: 26.01 MB / 0.5247 GB, free: 9.426 MB / 446.1 MB [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] [Timeout remaining time 660] "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time