Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001982/0.001982, allocations: 92.27 kB / 20.96 MB, free: 3.445 MB / 18.57 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.002276/0.002276, allocations: 152.9 kB / 24.26 MB, free: 148 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.184e-06/2.184e-06, allocations: 0 / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.726e-05/3.944e-05, allocations: 2.312 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01824/0.01828, allocations: 12.92 MB / 285.1 MB, free: 4.844 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1685/0.1868, allocations: 17.96 MB / 303.1 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00279/0.1896, allocations: 136.8 kB / 303.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003538/0.1931, allocations: 1.169 MB / 304.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007528/0.2007, allocations: 2.471 MB / 306.8 MB, free: 9.535 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005426/0.2061, allocations: 1.45 MB / 308.3 MB, free: 8.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008614/0.2147, allocations: 6.914 MB / 315.2 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006138/0.2153, allocations: 266.2 kB / 315.5 MB, free: 5.082 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001948/0.2173, allocations: 1.613 MB / 317.1 MB, free: 3.871 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008778/0.2181, allocations: 0.8212 MB / 317.9 MB, free: 3.047 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001584/0.2183, allocations: 72 kB / 318 MB, free: 2.977 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003799/0.2221, allocations: 1.202 MB / 319.2 MB, free: 1.773 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002418/0.2223, allocations: 345.4 kB / 319.5 MB, free: 1.434 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009075/0.2233, allocations: 0.767 MB / 320.3 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005829/0.2291, allocations: 3.958 MB / 324.2 MB, free: 12.69 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.2291, allocations: 0 / 324.2 MB, free: 12.69 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2291, allocations: 4 kB / 324.2 MB, free: 12.69 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.153e-05/0.2292, allocations: 0 / 324.2 MB, free: 12.69 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.00615/0.2353, allocations: 3.845 MB / 328.1 MB, free: 8.785 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.2354, allocations: 11.98 kB / 328.1 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006604/0.236, allocations: 473.2 kB / 328.5 MB, free: 8.309 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004081/0.2401, allocations: 2.642 MB / 331.2 MB, free: 5.574 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.839e-05/0.2401, allocations: 37 kB / 331.2 MB, free: 5.535 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.2403, allocations: 55.94 kB / 331.3 MB, free: 5.48 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.2418, allocations: 0.7304 MB / 332 MB, free: 4.746 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.2419, allocations: 4 kB / 332 MB, free: 4.742 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-05/0.2419, allocations: 23.94 kB / 332 MB, free: 4.719 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.412e-05/0.242, allocations: 19.98 kB / 332.1 MB, free: 4.699 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001797/0.2438, allocations: 0.8163 MB / 332.9 MB, free: 3.887 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005832/0.2496, allocations: 2.805 MB / 335.7 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.2509, allocations: 0.5202 MB / 336.2 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001129/0.252, allocations: 0.5653 MB / 336.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03834/0.2904, allocations: 15.25 MB / 352 MB, free: 300 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00125/0.2916, allocations: 362.7 kB / 352.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.757e-06/0.2916, allocations: 0 / 352.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.004073/0.2957, allocations: 1.151 MB / 353.5 MB, free: 14.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.277e-05/0.2958, allocations: 59.41 kB / 353.6 MB, free: 14.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00771/0.3035, allocations: 3.11 MB / 356.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001539/0.3037, allocations: 33.7 kB / 356.7 MB, free: 11.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002685/0.3063, allocations: 1.585 MB / 358.3 MB, free: 9.957 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003871/0.3067, allocations: 170.5 kB / 358.5 MB, free: 9.789 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006286/0.3074, allocations: 226.4 kB / 358.7 MB, free: 9.562 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002657/0.3076, allocations: 338 kB / 359 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009894/0.3086, allocations: 249.8 kB / 359.3 MB, free: 8.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001492/0.3101, allocations: 0.594 MB / 359.9 MB, free: 8.207 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002523/0.3126, allocations: 0.9023 MB / 360.8 MB, free: 7.133 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.668e-05/0.3126, allocations: 7.938 kB / 360.8 MB, free: 7.125 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003988/0.3166, allocations: 1.3 MB / 362.1 MB, free: 5.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/0.3167, allocations: 12 kB / 362.1 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001917/0.3169, allocations: 80.88 kB / 362.2 MB, free: 5.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.864e-05/0.3169, allocations: 16 kB / 362.2 MB, free: 5.715 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.318, allocations: 203.7 kB / 362.4 MB, free: 5.516 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-05/0.3181, allocations: 31.8 kB / 362.4 MB, free: 5.484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.3194, allocations: 111.3 kB / 362.5 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.3195, allocations: 71.98 kB / 362.6 MB, free: 5.305 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.0009111/0.3204, allocations: 445.5 kB / 363 MB, free: 4.859 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000731/0.3211, allocations: 445.2 kB / 363.5 MB, free: 4.422 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003144/0.3243, allocations: 1.199 MB / 364.7 MB, free: 3.219 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.3243, allocations: 4 kB / 364.7 MB, free: 3.215 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3243, allocations: 0 / 364.7 MB, free: 3.215 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.3243, allocations: 3.938 kB / 364.7 MB, free: 3.211 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004213/0.3285, allocations: 1.989 MB / 366.7 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001075/0.3286, allocations: 68 kB / 366.7 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005275/0.3291, allocations: 91.92 kB / 366.8 MB, free: 1.023 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.3292, allocations: 4 kB / 366.8 MB, free: 1.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.425e-05/0.3292, allocations: 35.98 kB / 366.8 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.3292, allocations: 7.938 kB / 366.9 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3292, allocations: 0.875 kB / 366.9 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002875/0.3321, allocations: 1.36 MB / 368.2 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009829/0.3331, allocations: 451.1 kB / 368.7 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003959/0.3335, allocations: 12.06 kB / 368.7 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007879/0.3343, allocations: 35.89 kB / 368.7 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/0.3345, allocations: 59.94 kB / 368.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.53e-05/0.3345, allocations: 39.98 kB / 368.8 MB, free: 15 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003455/0.338, allocations: 2.003 MB / 370.8 MB, free: 13 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.338, allocations: 0 / 370.8 MB, free: 13 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001591/0.3396, allocations: 0.6008 MB / 371.4 MB, free: 12.4 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.001458/0.341, allocations: 0.8425 MB / 372.2 MB, free: 11.55 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001826/0.3429, allocations: 0.7765 MB / 373 MB, free: 10.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.3429, allocations: 8.125 kB / 373 MB, free: 10.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000879/0.3438, allocations: 427 kB / 373.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002866/0.3466, allocations: 0.6606 MB / 374.1 MB, free: 9.652 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007905/0.3545, allocations: 4.612 MB / 378.7 MB, free: 4.973 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001451/0.356, allocations: 1.162 MB / 379.9 MB, free: 3.773 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001148/0.3571, allocations: 357.3 kB / 380.2 MB, free: 3.418 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002909/0.3574, allocations: 152.5 kB / 380.4 MB, free: 3.27 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.3574, allocations: 0 / 380.4 MB, free: 3.27 MB / 330.7 MB Notification: Performance of Templates: time 0.06416/0.4216, allocations: 33.26 MB / 413.6 MB, free: 2.523 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.6052497290074825]