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.0007897/0.0007897, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.003165/0.003165, allocations: 156 kB / 24.7 MB, free: 9.434 MB / 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 0.8572/0.8572, allocations: 177 MB / 204.9 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.393e-06/1.393e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.775e-05/1.915e-05, allocations: 3.266 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.008281/0.0083, allocations: 12.92 MB / 338.7 MB, free: 2.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0141/0.0224, allocations: 17.97 MB / 356.6 MB, free: 400 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001159/0.02356, allocations: 134.5 kB / 356.8 MB, free: 264 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001707/0.02527, allocations: 1.168 MB / 357.9 MB, free: 15.08 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004137/0.0294, allocations: 2.475 MB / 360.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002065/0.03147, allocations: 1.445 MB / 361.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00553/0.037, allocations: 6.916 MB / 368.8 MB, free: 4.195 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004224/0.03742, allocations: 270.2 kB / 369 MB, free: 3.906 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001311/0.03873, allocations: 1.601 MB / 370.6 MB, free: 2.301 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006636/0.0394, allocations: 0.8251 MB / 371.5 MB, free: 1.473 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.387e-05/0.03949, allocations: 72 kB / 371.5 MB, free: 1.402 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001693/0.04118, allocations: 1.206 MB / 372.7 MB, free: 200 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.04136, allocations: 345.4 kB / 373.1 MB, free: 15.86 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005015/0.04186, allocations: 0.7632 MB / 373.8 MB, free: 15.09 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00285/0.04471, allocations: 3.955 MB / 377.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.04471, allocations: 0 / 377.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.04471, allocations: 4 kB / 377.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.453e-05/0.04473, allocations: 0 / 377.8 MB, free: 11.12 MB / 346.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.002823/0.04756, allocations: 3.843 MB / 381.6 MB, free: 7.215 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.04759, allocations: 11.98 kB / 381.7 MB, free: 7.203 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005233/0.04812, allocations: 437.2 kB / 382.1 MB, free: 6.773 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00201/0.05013, allocations: 2.345 MB / 384.4 MB, free: 4.332 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.05015, allocations: 37 kB / 384.5 MB, free: 4.293 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.419e-05/0.05024, allocations: 63.88 kB / 384.5 MB, free: 4.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007661/0.051, allocations: 0.7304 MB / 385.3 MB, free: 3.492 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.05101, allocations: 0 / 385.3 MB, free: 3.492 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.195e-05/0.05106, allocations: 20 kB / 385.3 MB, free: 3.473 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.05107, allocations: 19.98 kB / 385.3 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000871/0.05194, allocations: 0.8163 MB / 386.1 MB, free: 2.641 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/0.05496, allocations: 2.804 MB / 388.9 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006399/0.0556, allocations: 0.5246 MB / 389.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005516/0.05616, allocations: 0.5689 MB / 390 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01378/0.06993, allocations: 13.71 MB / 403.7 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004216/0.07036, allocations: 374 kB / 404.1 MB, free: 212 kB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.643e-06/0.07036, allocations: 0 / 404.1 MB, free: 212 kB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.00121/0.07157, allocations: 1.139 MB / 405.2 MB, free: 15.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.405e-05/0.0716, allocations: 59.41 kB / 405.3 MB, free: 14.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002194/0.0738, allocations: 3.11 MB / 408.4 MB, free: 11.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.07383, allocations: 29.7 kB / 408.4 MB, free: 11.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008452/0.07467, allocations: 1.585 MB / 410 MB, free: 10.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.346e-05/0.07477, allocations: 170.6 kB / 410.2 MB, free: 10.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004214/0.07519, allocations: 222.4 kB / 410.4 MB, free: 9.863 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.716e-05/0.07528, allocations: 341.9 kB / 410.7 MB, free: 9.523 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003166/0.07559, allocations: 245.9 kB / 411 MB, free: 9.281 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004554/0.07605, allocations: 0.5978 MB / 411.6 MB, free: 8.508 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007951/0.07684, allocations: 0.8984 MB / 412.5 MB, free: 7.434 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.07685, allocations: 4 kB / 412.5 MB, free: 7.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001116/0.07796, allocations: 1.267 MB / 413.7 MB, free: 6.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.07798, allocations: 16.86 kB / 413.8 MB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.732e-05/0.07804, allocations: 80 kB / 413.8 MB, free: 6.066 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.07806, allocations: 20 kB / 413.9 MB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.07842, allocations: 199.6 kB / 414 MB, free: 5.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.07843, allocations: 31.86 kB / 414.1 MB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000445/0.07888, allocations: 115.3 kB / 414.2 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-05/0.07894, allocations: 64 kB / 414.3 MB, free: 5.645 MB / 378.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.0004335/0.07937, allocations: 454.3 kB / 414.7 MB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002184/0.07959, allocations: 417.4 kB / 415.1 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/0.08103, allocations: 1.212 MB / 416.3 MB, free: 3.555 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.08103, allocations: 4 kB / 416.3 MB, free: 3.551 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.08103, allocations: 0 / 416.3 MB, free: 3.551 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.08104, allocations: 3.984 kB / 416.3 MB, free: 3.547 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/0.08314, allocations: 1.981 MB / 418.3 MB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.828e-05/0.08319, allocations: 80 kB / 418.4 MB, free: 1.438 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/0.08341, allocations: 95.84 kB / 418.5 MB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.08342, allocations: 0 / 418.5 MB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.207e-05/0.08345, allocations: 28 kB / 418.5 MB, free: 1.316 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.08345, allocations: 4 kB / 418.5 MB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.08345, allocations: 0 / 418.5 MB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.08466, allocations: 1.348 MB / 419.9 MB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003924/0.08505, allocations: 439.1 kB / 420.3 MB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/0.0852, allocations: 16.06 kB / 420.3 MB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003432/0.08554, allocations: 27.95 kB / 420.3 MB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.08565, allocations: 59.94 kB / 420.4 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.497e-05/0.08569, allocations: 39.98 kB / 420.4 MB, free: 15.37 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001532/0.08722, allocations: 2.007 MB / 422.4 MB, free: 13.37 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.08722, allocations: 0 / 422.4 MB, free: 13.37 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007584/0.08798, allocations: 0.6047 MB / 423 MB, free: 12.76 MB / 394.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.0008127/0.08879, allocations: 0.8227 MB / 423.9 MB, free: 11.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.08999, allocations: 0.7757 MB / 424.6 MB, free: 11.13 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.08999, allocations: 0 / 424.6 MB, free: 11.13 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004026/0.0904, allocations: 432.2 kB / 425.1 MB, free: 10.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001357/0.09175, allocations: 0.6356 MB / 425.7 MB, free: 10.04 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003617/0.09537, allocations: 4.567 MB / 430.3 MB, free: 5.426 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006618/0.09603, allocations: 1.161 MB / 431.4 MB, free: 4.227 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.09619, allocations: 160.5 kB / 431.6 MB, free: 4.07 MB / 394.7 MB Notification: Performance of SimCode: time 5.91e-07/0.09619, allocations: 4 kB / 431.6 MB, free: 4.066 MB / 394.7 MB Notification: Performance of Templates: time 0.1692/0.2654, allocations: 40.35 MB / 471.9 MB, free: 103.1 MB / 410.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: 8.918809722177684]