Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 81.66 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 151 kB / 23.94 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 173.3 MB / 200.4 MB, free: 12.85 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.894e-05/2.03e-05, allocations: 2.281 kB / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006522/0.006542, allocations: 6.915 MB / 325.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02157/0.02811, allocations: 16.66 MB / 342.5 MB, free: 2.887 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001153/0.02926, allocations: 97.41 kB / 342.6 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002291/0.03155, allocations: 0.7752 MB / 343.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005693/0.03725, allocations: 1.859 MB / 345.2 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003895/0.04114, allocations: 1.356 MB / 346.6 MB, free: 15.83 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005502/0.04664, allocations: 3.354 MB / 349.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003093/0.04695, allocations: 128.8 kB / 350.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.04802, allocations: 0.7948 MB / 350.9 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006519/0.04867, allocations: 414.5 kB / 351.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.04878, allocations: 40 kB / 351.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002961/0.05174, allocations: 1.174 MB / 352.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001871/0.05193, allocations: 174.8 kB / 352.6 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005182/0.05245, allocations: 374.8 kB / 353 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003137/0.05558, allocations: 2.266 MB / 355.3 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.05559, allocations: 0 / 355.3 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.05559, allocations: 11.81 kB / 355.3 MB, free: 7.164 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.926e-05/0.05561, allocations: 0 / 355.3 MB, free: 7.164 MB / 318.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.003135/0.05874, allocations: 1.975 MB / 357.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.05878, allocations: 8.922 kB / 357.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002489/0.05903, allocations: 202.7 kB / 357.5 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002015/0.06104, allocations: 1.253 MB / 358.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.06107, allocations: 16.66 kB / 358.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.401e-05/0.06115, allocations: 28 kB / 358.8 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.06216, allocations: 433.8 kB / 359.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.06218, allocations: 4 kB / 359.2 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.804e-05/0.06222, allocations: 12 kB / 359.2 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.06224, allocations: 11.94 kB / 359.2 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.06343, allocations: 470.4 kB / 359.7 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002757/0.06619, allocations: 1.429 MB / 361.1 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.0672, allocations: 340.2 kB / 361.4 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007673/0.06797, allocations: 373.9 kB / 361.8 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01334/0.0813, allocations: 6.961 MB / 368.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000679/0.08198, allocations: 263.1 kB / 369 MB, free: 9.031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.244e-06/0.08198, allocations: 0 / 369 MB, free: 9.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002171/0.08415, allocations: 0.7703 MB / 369.8 MB, free: 8.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.0842, allocations: 55.41 kB / 369.8 MB, free: 8.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001835/0.08604, allocations: 1.467 MB / 371.3 MB, free: 6.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/0.08608, allocations: 29.7 kB / 371.3 MB, free: 6.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006811/0.08676, allocations: 0.727 MB / 372.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.377e-05/0.08685, allocations: 95.27 kB / 372.2 MB, free: 5.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.08704, allocations: 126 kB / 372.3 MB, free: 5.691 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.08719, allocations: 333.9 kB / 372.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004914/0.08768, allocations: 156.9 kB / 372.8 MB, free: 5.203 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006388/0.08832, allocations: 358.8 kB / 373.1 MB, free: 4.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.08948, allocations: 0.5339 MB / 373.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.08948, allocations: 0 / 373.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001588/0.09107, allocations: 0.7595 MB / 374.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.09109, allocations: 8.844 kB / 374.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.959e-05/0.09116, allocations: 40 kB / 374.5 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003369/0.0915, allocations: 136.8 kB / 374.6 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004468/0.09194, allocations: 107.8 kB / 374.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007201/0.09266, allocations: 0.685 MB / 375.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005529/0.09322, allocations: 71.66 kB / 375.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-05/0.09329, allocations: 36 kB / 375.5 MB, free: 2.262 MB / 334.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.0004205/0.09372, allocations: 277.6 kB / 375.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.09392, allocations: 198.8 kB / 375.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/0.09583, allocations: 0.7431 MB / 376.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.09583, allocations: 4 kB / 376.7 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.09584, allocations: 0 / 376.7 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.09584, allocations: 0 / 376.7 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002319/0.09816, allocations: 1.192 MB / 377.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-05/0.09822, allocations: 36 kB / 377.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002756/0.0985, allocations: 48.02 kB / 378 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002605/0.09876, allocations: 128.8 kB / 378.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.819e-05/0.09879, allocations: 16 kB / 378.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007031/0.0995, allocations: 0.6694 MB / 378.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.0995, allocations: 4.031 kB / 378.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001528/0.101, allocations: 0.7134 MB / 379.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003898/0.1014, allocations: 216.5 kB / 379.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/0.1016, allocations: 11.94 kB / 379.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004631/0.102, allocations: 27.97 kB / 379.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.1022, allocations: 47.94 kB / 379.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.491e-05/0.1022, allocations: 16 kB / 379.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001231/0.1034, allocations: 0.9571 MB / 380.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1034, allocations: 0 / 380.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008781/0.1043, allocations: 335.5 kB / 381.1 MB, free: 12.5 MB / 350.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.0009452/0.1053, allocations: 0.6043 MB / 381.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.1066, allocations: 0.4928 MB / 382.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1066, allocations: 0 / 382.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007145/0.1073, allocations: 284.2 kB / 382.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001337/0.1087, allocations: 321.9 kB / 382.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003373/0.112, allocations: 2.195 MB / 385 MB, free: 8.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005619/0.1126, allocations: 0.5666 MB / 385.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005043/0.1131, allocations: 195.9 kB / 385.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001578/0.1132, allocations: 88.5 kB / 385.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1132, allocations: 0 / 385.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of Templates: time 0.03517/0.1484, allocations: 19.35 MB / 405.2 MB, free: 4.547 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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: 4.847842570394278]