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.0007845/0.0007845, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003261/0.003261, allocations: 144.5 kB / 24.68 MB, free: 9.434 MB / 18.57 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 0.8032/0.8032, allocations: 173.4 MB / 201.2 MB, free: 9.41 MB / 186.7 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.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 1.313e-06/1.313e-06, allocations: 3.938 kB / 319.7 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.383e-05/2.514e-05, allocations: 2.281 kB / 319.7 MB, free: 5.789 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002687/0.002712, allocations: 2.679 MB / 322.4 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.003733, allocations: 0.6855 MB / 323.1 MB, free: 2.398 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.00388, allocations: 4 kB / 323.1 MB, free: 2.395 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.004027, allocations: 55.44 kB / 323.2 MB, free: 2.34 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001587/0.004186, allocations: 107.1 kB / 323.3 MB, free: 2.234 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002365/0.004422, allocations: 111.7 kB / 323.4 MB, free: 2.125 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002977/0.00472, allocations: 406.2 kB / 323.8 MB, free: 1.727 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.00488, allocations: 84.52 kB / 323.9 MB, free: 1.645 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001819/0.005062, allocations: 223.4 kB / 324.1 MB, free: 1.426 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.005196, allocations: 135.6 kB / 324.2 MB, free: 1.293 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.982e-05/0.005235, allocations: 36 kB / 324.2 MB, free: 1.258 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.285e-05/0.005268, allocations: 36 kB / 324.3 MB, free: 1.223 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.849e-05/0.005317, allocations: 75.69 kB / 324.3 MB, free: 1.148 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.998e-05/0.005407, allocations: 119.7 kB / 324.5 MB, free: 1.031 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.005723, allocations: 406.7 kB / 324.9 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.005726, allocations: 0 / 324.9 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.005727, allocations: 0 / 324.9 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.005732, allocations: 4 kB / 324.9 MB, free: 0.6289 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0008868/0.006619, allocations: 0.6144 MB / 325.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.006653, allocations: 12.92 kB / 325.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.718e-05/0.00671, allocations: 32.75 kB / 325.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002924/0.007002, allocations: 241 kB / 325.8 MB, free: 15.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.007021, allocations: 24.81 kB / 325.8 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.757e-05/0.007049, allocations: 28.36 kB / 325.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004136/0.007463, allocations: 315.2 kB / 326.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.007473, allocations: 192 / 326.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.007494, allocations: 14.25 kB / 326.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.007501, allocations: 4 kB / 326.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00042/0.007921, allocations: 277.8 kB / 326.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.008966, allocations: 0.9604 MB / 327.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000436/0.009402, allocations: 206.5 kB / 327.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.00955, allocations: 84.78 kB / 327.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.009568, allocations: 4.125 kB / 327.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002436/0.009812, allocations: 164.9 kB / 327.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 2.094e-06/0.009814, allocations: 3.984 kB / 327.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006837/0.0105, allocations: 326.1 kB / 328.1 MB, free: 13.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.01054, allocations: 81.11 kB / 328.2 MB, free: 13.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002032/0.01074, allocations: 293.7 kB / 328.5 MB, free: 12.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.01076, allocations: 25.7 kB / 328.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.01086, allocations: 223.8 kB / 328.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.01088, allocations: 35.77 kB / 328.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.335e-05/0.01095, allocations: 57.88 kB / 328.8 MB, free: 12.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.221e-05/0.01103, allocations: 338.8 kB / 329.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.01122, allocations: 121.9 kB / 329.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002159/0.01143, allocations: 244.6 kB / 329.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.0118, allocations: 332 kB / 329.9 MB, free: 11.28 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.0118, allocations: 7.938 kB / 329.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005138/0.01232, allocations: 428.7 kB / 330.3 MB, free: 10.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.01235, allocations: 37.7 kB / 330.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.01236, allocations: 4 kB / 330.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001395/0.01249, allocations: 33.09 kB / 330.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.01263, allocations: 71.81 kB / 330.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007/0.01333, allocations: 1.268 MB / 331.7 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/0.0135, allocations: 51.95 kB / 331.7 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.01352, allocations: 16 kB / 331.8 MB, free: 9.246 MB / 298.7 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.000109/0.01363, allocations: 145.7 kB / 331.9 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.01365, allocations: 27.86 kB / 331.9 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.883e-05/0.01368, allocations: 21.77 kB / 332 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.01368, allocations: 7.938 kB / 332 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.01368, allocations: 0 / 332 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.01369, allocations: 7.938 kB / 332 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000273/0.01396, allocations: 347 kB / 332.3 MB, free: 8.648 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.01396, allocations: 4 kB / 332.3 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.82e-05/0.01404, allocations: 31.97 kB / 332.3 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.197e-05/0.01411, allocations: 32.77 kB / 332.4 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.01412, allocations: 0 / 332.4 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005733/0.0147, allocations: 1.272 MB / 333.6 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.0147, allocations: 0 / 333.6 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003691/0.01507, allocations: 266.6 kB / 333.9 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.682e-05/0.01509, allocations: 27.84 kB / 333.9 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.01511, allocations: 0 / 333.9 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.01521, allocations: 31.95 kB / 334 MB, free: 6.863 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.414e-05/0.01526, allocations: 19.92 kB / 334 MB, free: 6.844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.575e-06/0.01527, allocations: 0 / 334 MB, free: 6.844 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001298/0.0154, allocations: 205.2 kB / 334.2 MB, free: 6.641 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0154, allocations: 0 / 334.2 MB, free: 6.641 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002212/0.01562, allocations: 75.81 kB / 334.3 MB, free: 6.566 MB / 298.7 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.0001075/0.01573, allocations: 99.25 kB / 334.4 MB, free: 6.457 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005598/0.01629, allocations: 427.6 kB / 334.8 MB, free: 6.008 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.01629, allocations: 96 / 334.8 MB, free: 6.008 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002265/0.01652, allocations: 219.3 kB / 335 MB, free: 5.781 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.01674, allocations: 47.47 kB / 335 MB, free: 5.738 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006569/0.0174, allocations: 0.4898 MB / 335.5 MB, free: 5.207 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.291e-05/0.01748, allocations: 146.9 kB / 335.7 MB, free: 5.047 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.796e-05/0.01754, allocations: 24.5 kB / 335.7 MB, free: 5.023 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.01754, allocations: 0 / 335.7 MB, free: 5.023 MB / 298.7 MB Notification: Performance of Templates: time 0.004189/0.02173, allocations: 4.609 MB / 340.3 MB, free: 440 kB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/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: 4.3272997830063105]