Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.001323/0.001323, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001525/0.001525, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.508/1.508, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 47.92 kB / 371.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2533, allocations: 52.18 MB / 423.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004216/0.2575, allocations: 2.694 MB / 426.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.2588, allocations: 0.6778 MB / 427.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.2589, allocations: 11.94 kB / 427.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.2591, allocations: 47.52 kB / 427.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.2593, allocations: 99.17 kB / 427.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.2596, allocations: 115.8 kB / 427.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004288/0.26, allocations: 394.4 kB / 427.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002038/0.2602, allocations: 92.16 kB / 428 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.2604, allocations: 143.5 kB / 428.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002178/0.2606, allocations: 163.2 kB / 428.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.361e-05/0.2606, allocations: 36 kB / 428.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.278e-05/0.2607, allocations: 36 kB / 428.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.478e-05/0.2608, allocations: 75.7 kB / 428.4 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.2609, allocations: 143.3 kB / 428.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004296/0.2614, allocations: 397.4 kB / 428.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2614, allocations: 0 / 428.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2614, allocations: 0 / 428.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.2614, allocations: 0 / 428.9 MB, free: 9.371 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001331/0.2627, allocations: 0.6092 MB / 429.6 MB, free: 8.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.2627, allocations: 8.031 kB / 429.6 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.926e-05/0.2628, allocations: 40.7 kB / 429.6 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004108/0.2632, allocations: 245.9 kB / 429.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.2633, allocations: 28.8 kB / 429.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.105e-05/0.2633, allocations: 20.38 kB / 429.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007184/0.264, allocations: 323 kB / 430.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.264, allocations: 0 / 430.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.292e-05/0.2641, allocations: 12 kB / 430.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.2641, allocations: 11.94 kB / 430.2 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008123/0.2649, allocations: 277.7 kB / 430.5 MB, free: 7.738 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001756/0.2666, allocations: 0.9635 MB / 431.5 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008109/0.2675, allocations: 202.5 kB / 431.7 MB, free: 6.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003228/0.2678, allocations: 88.78 kB / 431.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.2678, allocations: 0 / 431.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004367/0.2682, allocations: 157.1 kB / 431.9 MB, free: 6.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.2682, allocations: 0 / 431.9 MB, free: 6.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001245/0.2695, allocations: 334.1 kB / 432.2 MB, free: 5.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.2695, allocations: 81.11 kB / 432.3 MB, free: 5.797 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000316/0.2699, allocations: 289.8 kB / 432.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.2699, allocations: 25.7 kB / 432.6 MB, free: 5.477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/0.2701, allocations: 223.8 kB / 432.8 MB, free: 5.254 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.437e-05/0.2701, allocations: 31.73 kB / 432.9 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/0.2703, allocations: 53.89 kB / 432.9 MB, free: 5.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.2705, allocations: 334.8 kB / 433.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004404/0.2709, allocations: 129.9 kB / 433.4 MB, free: 4.691 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004625/0.2714, allocations: 236.7 kB / 433.6 MB, free: 4.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.2726, allocations: 331.9 kB / 433.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.2726, allocations: 4 kB / 433.9 MB, free: 4.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001543/0.2741, allocations: 429.5 kB / 434.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.732e-05/0.2742, allocations: 37.7 kB / 434.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.15e-05/0.2742, allocations: 4 kB / 434.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001872/0.2744, allocations: 40.77 kB / 434.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003433/0.2747, allocations: 64.05 kB / 434.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001648/0.2764, allocations: 1.276 MB / 435.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005074/0.2769, allocations: 44.19 kB / 435.8 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.935e-05/0.2769, allocations: 20.16 kB / 435.8 MB, free: 1.984 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002369/0.2771, allocations: 149.7 kB / 436 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/0.2772, allocations: 27.84 kB / 436 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.457e-05/0.2773, allocations: 21.66 kB / 436 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.2773, allocations: 11.98 kB / 436 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2773, allocations: 0 / 436 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2773, allocations: 0 / 436 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006413/0.2779, allocations: 354.9 kB / 436.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.2779, allocations: 3.984 kB / 436.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002702/0.2782, allocations: 35.94 kB / 436.4 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001453/0.2784, allocations: 28.84 kB / 436.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.2784, allocations: 0 / 436.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/0.2798, allocations: 1.273 MB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2798, allocations: 0 / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.281, allocations: 270.5 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.864e-05/0.281, allocations: 27.84 kB / 438 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.13e-05/0.2811, allocations: 0 / 438 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003411/0.2814, allocations: 27.97 kB / 438 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.766e-05/0.2815, allocations: 19.97 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.2815, allocations: 0 / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003474/0.2819, allocations: 201.2 kB / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2819, allocations: 0 / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006329/0.2825, allocations: 75.84 kB / 438.3 MB, free: 15.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001733/0.2827, allocations: 107.2 kB / 438.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.2843, allocations: 435.7 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2843, allocations: 0 / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007344/0.285, allocations: 203.4 kB / 439.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005158/0.2855, allocations: 52.97 kB / 439.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.2871, allocations: 0.5105 MB / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002037/0.2873, allocations: 146.9 kB / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.2874, allocations: 35.36 kB / 439.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2874, allocations: 4 kB / 439.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of Templates: time 0.01098/0.2984, allocations: 4.599 MB / 444.4 MB, free: 9.137 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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: 7.516701055690646]