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.0009935/0.0009935, allocations: 68.08 kB / 21.69 MB, free: 2.863 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.001698/0.001698, allocations: 145.4 kB / 24.97 MB, free: 8.816 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.9944/0.9944, allocations: 173.3 MB / 201.5 MB, free: 9.352 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.312e-06/1.312e-06, allocations: 0 / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.449e-05/2.58e-05, allocations: 2.312 kB / 268.1 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003417/0.003442, allocations: 2.876 MB / 271 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.004661, allocations: 0.6933 MB / 271.7 MB, free: 3.105 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001653/0.004826, allocations: 4 kB / 271.7 MB, free: 3.102 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.004981, allocations: 47.5 kB / 271.7 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001849/0.005166, allocations: 115 kB / 271.8 MB, free: 2.941 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003014/0.005468, allocations: 111.7 kB / 272 MB, free: 2.832 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003883/0.005856, allocations: 406.3 kB / 272.4 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.006039, allocations: 88.48 kB / 272.4 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00025/0.006289, allocations: 215.5 kB / 272.7 MB, free: 2.137 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001635/0.006453, allocations: 143.6 kB / 272.8 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.658e-05/0.0065, allocations: 36 kB / 272.8 MB, free: 1.961 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.754e-05/0.006537, allocations: 44 kB / 272.9 MB, free: 1.918 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.856e-05/0.006596, allocations: 79.67 kB / 272.9 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.0067, allocations: 115.7 kB / 273.1 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002916/0.006992, allocations: 247.1 kB / 273.3 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.006996, allocations: 0 / 273.3 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.006997, allocations: 0 / 273.3 MB, free: 1.484 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.007003, allocations: 0 / 273.3 MB, free: 1.484 MB / 250.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.0009275/0.00793, allocations: 0.6934 MB / 274 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.007973, allocations: 8.922 kB / 274 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.008076, allocations: 56.7 kB / 274.1 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003068/0.008383, allocations: 239.9 kB / 274.3 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.008403, allocations: 16.88 kB / 274.3 MB, free: 412 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.887e-05/0.008432, allocations: 28.38 kB / 274.3 MB, free: 384 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003905/0.008823, allocations: 261.6 kB / 274.6 MB, free: 104 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.008834, allocations: 192 / 274.6 MB, free: 104 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.008856, allocations: 12.38 kB / 274.6 MB, free: 92 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.008869, allocations: 7.938 kB / 274.6 MB, free: 84 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001948/0.009064, allocations: 103 kB / 274.7 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.01018, allocations: 1.033 MB / 275.7 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.01042, allocations: 83.06 kB / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.583e-05/0.01047, allocations: 23.72 kB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.0105, allocations: 11.98 kB / 275.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001507/0.01065, allocations: 108.5 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.01065, allocations: 4 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004303/0.01108, allocations: 157.1 kB / 276.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.01112, allocations: 81.05 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/0.01135, allocations: 336.1 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.01137, allocations: 25.7 kB / 276.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.01149, allocations: 262.6 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.301e-05/0.01151, allocations: 31.86 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.089e-05/0.01158, allocations: 67.53 kB / 276.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003811/0.01196, allocations: 0.5079 MB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.407e-05/0.01205, allocations: 49.92 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.01219, allocations: 220.8 kB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002078/0.0124, allocations: 255.8 kB / 277.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.01241, allocations: 0 / 277.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003746/0.01278, allocations: 300.1 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.52e-05/0.01283, allocations: 44.66 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.01283, allocations: 4 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002433/0.01308, allocations: 52.03 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.01321, allocations: 55.89 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008573/0.01406, allocations: 1.748 MB / 280.1 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.01422, allocations: 35.83 kB / 280.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.01424, allocations: 15.98 kB / 280.2 MB, free: 10.01 MB / 266.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.0001088/0.01435, allocations: 180.4 kB / 280.4 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.261e-05/0.01438, allocations: 23.86 kB / 280.4 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.433e-05/0.01441, allocations: 29.77 kB / 280.4 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.01442, allocations: 0 / 280.4 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.01442, allocations: 0 / 280.4 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.01442, allocations: 8.031 kB / 280.4 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003038/0.01473, allocations: 408.9 kB / 280.8 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.01473, allocations: 0 / 280.8 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.208e-05/0.01479, allocations: 19.98 kB / 280.8 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001382/0.01493, allocations: 47.67 kB / 280.9 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.01494, allocations: 4 kB / 280.9 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007878/0.01573, allocations: 1.748 MB / 282.6 MB, free: 7.371 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.01573, allocations: 0 / 282.6 MB, free: 7.371 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002146/0.01594, allocations: 167.6 kB / 282.8 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.107e-05/0.01598, allocations: 31.92 kB / 282.8 MB, free: 7.145 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.016, allocations: 3.984 kB / 282.8 MB, free: 7.141 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.287e-05/0.01608, allocations: 19.98 kB / 282.9 MB, free: 7.121 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.416e-05/0.01614, allocations: 15.92 kB / 282.9 MB, free: 7.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.01616, allocations: 7.984 kB / 282.9 MB, free: 7.098 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000131/0.01629, allocations: 221.1 kB / 283.1 MB, free: 6.883 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01629, allocations: 0 / 283.1 MB, free: 6.883 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002572/0.01654, allocations: 71.84 kB / 283.2 MB, free: 6.812 MB / 266.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.0001091/0.01665, allocations: 103.2 kB / 283.3 MB, free: 6.699 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004045/0.01706, allocations: 370.3 kB / 283.6 MB, free: 6.297 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.01706, allocations: 0 / 283.6 MB, free: 6.297 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.01721, allocations: 214.5 kB / 283.8 MB, free: 6.066 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.01746, allocations: 53 kB / 283.9 MB, free: 6.016 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.01879, allocations: 446.6 kB / 284.3 MB, free: 5.547 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.798e-05/0.01884, allocations: 80.31 kB / 284.4 MB, free: 5.449 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.792e-05/0.01892, allocations: 30.28 kB / 284.4 MB, free: 5.418 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.409e-05/0.01897, allocations: 20.5 kB / 284.4 MB, free: 5.395 MB / 266.7 MB Notification: Performance of SimCode: time 1.362e-06/0.01897, allocations: 0 / 284.4 MB, free: 5.395 MB / 266.7 MB Notification: Performance of Templates: time 0.005358/0.02433, allocations: 3.265 MB / 287.7 MB, free: 2.18 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.760892500868067]