Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002289/0.002289, allocations: 215.1 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.531/1.531, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001646, allocations: 51.92 kB / 378.3 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2807, allocations: 53.36 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004998/0.2857, allocations: 2.719 MB / 434.3 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.2872, allocations: 0.7011 MB / 435 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.2874, allocations: 8 kB / 435 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001985/0.2876, allocations: 51.5 kB / 435.1 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002178/0.2878, allocations: 95.19 kB / 435.2 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003251/0.2881, allocations: 119.8 kB / 435.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004781/0.2886, allocations: 386.5 kB / 435.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002649/0.2888, allocations: 104.1 kB / 435.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001971/0.289, allocations: 155.4 kB / 435.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002387/0.2893, allocations: 171.3 kB / 436.1 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.051e-05/0.2893, allocations: 36 kB / 436.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.217e-05/0.2894, allocations: 36 kB / 436.2 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.056e-05/0.2895, allocations: 79.69 kB / 436.2 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.2897, allocations: 143.3 kB / 436.4 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005456/0.2902, allocations: 401 kB / 436.8 MB, free: 1.543 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.2902, allocations: 0 / 436.8 MB, free: 1.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.2902, allocations: 0 / 436.8 MB, free: 1.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.2902, allocations: 0 / 436.8 MB, free: 1.543 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.001542/0.2918, allocations: 0.6131 MB / 437.4 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.2918, allocations: 8.031 kB / 437.4 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.399e-05/0.2919, allocations: 44.7 kB / 437.4 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004852/0.2924, allocations: 241.8 kB / 437.7 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.2924, allocations: 20.88 kB / 437.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.393e-05/0.2925, allocations: 24.38 kB / 437.7 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000796/0.2933, allocations: 323 kB / 438 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.2933, allocations: 0 / 438 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.2933, allocations: 12 kB / 438 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.2933, allocations: 7.938 kB / 438.1 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008518/0.2942, allocations: 273.9 kB / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001905/0.2961, allocations: 0.9673 MB / 439.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008618/0.2969, allocations: 202.7 kB / 439.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003208/0.2973, allocations: 88.72 kB / 439.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.2973, allocations: 4 kB / 439.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004708/0.2978, allocations: 157 kB / 439.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.653e-06/0.2978, allocations: 0 / 439.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001348/0.2991, allocations: 330.1 kB / 440.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.682e-05/0.2992, allocations: 81.11 kB / 440.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003474/0.2995, allocations: 297.8 kB / 440.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.2996, allocations: 25.7 kB / 440.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.2997, allocations: 223.8 kB / 440.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.913e-05/0.2998, allocations: 35.69 kB / 440.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.2999, allocations: 49.94 kB / 440.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3, allocations: 334.8 kB / 441.1 MB, free: 13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003837/0.3004, allocations: 129.8 kB / 441.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004623/0.3009, allocations: 245.4 kB / 441.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007825/0.3017, allocations: 335.9 kB / 441.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3017, allocations: 0 / 441.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001042/0.3027, allocations: 433.5 kB / 442.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.177e-05/0.3028, allocations: 45.72 kB / 442.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.3028, allocations: 4 kB / 442.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002368/0.303, allocations: 28.84 kB / 442.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003037/0.3033, allocations: 67.88 kB / 442.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.3046, allocations: 1.26 MB / 443.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003648/0.305, allocations: 47.81 kB / 443.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/0.305, allocations: 19.98 kB / 443.7 MB, free: 10.16 MB / 350.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.0002054/0.3052, allocations: 153.6 kB / 443.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.496e-05/0.3053, allocations: 23.86 kB / 443.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.22e-05/0.3053, allocations: 33.8 kB / 443.9 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.3053, allocations: 4 kB / 443.9 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3053, allocations: 0 / 443.9 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3053, allocations: 0 / 443.9 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004893/0.3058, allocations: 350.9 kB / 444.2 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3058, allocations: 0 / 444.2 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.306, allocations: 28.34 kB / 444.2 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001113/0.3061, allocations: 32.86 kB / 444.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.3062, allocations: 8 kB / 444.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.3073, allocations: 1.272 MB / 445.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.3073, allocations: 7.922 kB / 445.6 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007602/0.308, allocations: 266.6 kB / 445.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.717e-05/0.3081, allocations: 19.84 kB / 445.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.3081, allocations: 8 kB / 445.9 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002472/0.3084, allocations: 27.97 kB / 445.9 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.779e-05/0.3084, allocations: 19.91 kB / 445.9 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.3085, allocations: 4 kB / 445.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002351/0.3087, allocations: 201.2 kB / 446.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3087, allocations: 0 / 446.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003733/0.3091, allocations: 75.84 kB / 446.2 MB, free: 7.461 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.0001445/0.3092, allocations: 99.23 kB / 446.3 MB, free: 7.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.3103, allocations: 440.3 kB / 446.7 MB, free: 6.891 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3103, allocations: 0 / 446.7 MB, free: 6.891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005065/0.3108, allocations: 210.5 kB / 446.9 MB, free: 6.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.3112, allocations: 55.2 kB / 447 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.3125, allocations: 488.3 kB / 447.4 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001658/0.3127, allocations: 146.9 kB / 447.6 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001205/0.3128, allocations: 30.28 kB / 447.6 MB, free: 5.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.608e-05/0.3129, allocations: 19.44 kB / 447.6 MB, free: 5.906 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3129, allocations: 4 kB / 447.6 MB, free: 5.902 MB / 350.1 MB Notification: Performance of Templates: time 0.008528/0.3214, allocations: 3.574 MB / 451.2 MB, free: 2.383 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.871247925329953]