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.001012/0.001012, allocations: 80.62 kB / 22.21 MB, free: 2.293 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.0009048/0.0009048, allocations: 149.6 kB / 25.6 MB, free: 8.91 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.9113/0.9113, allocations: 173.4 MB / 202.2 MB, free: 8.316 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.232e-06/1.232e-06, allocations: 0 / 269.2 MB, free: 9.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.687e-05/1.81e-05, allocations: 6.312 kB / 269.2 MB, free: 9.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002997/0.003015, allocations: 2.845 MB / 272.1 MB, free: 6.891 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.004183, allocations: 0.6887 MB / 272.8 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.004332, allocations: 8.562 kB / 272.8 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001626/0.004495, allocations: 55.5 kB / 272.8 MB, free: 6.137 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001711/0.004666, allocations: 102.3 kB / 272.9 MB, free: 6.039 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002829/0.004949, allocations: 115.7 kB / 273.1 MB, free: 5.926 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003754/0.005324, allocations: 402.3 kB / 273.4 MB, free: 5.531 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/0.005515, allocations: 96.44 kB / 273.5 MB, free: 5.438 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.005773, allocations: 220.9 kB / 273.8 MB, free: 5.223 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.005962, allocations: 139.6 kB / 273.9 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.64e-05/0.006019, allocations: 36 kB / 273.9 MB, free: 5.051 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.044e-05/0.006059, allocations: 36 kB / 274 MB, free: 5.016 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.505e-05/0.006124, allocations: 76.5 kB / 274 MB, free: 4.941 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.00623, allocations: 127.7 kB / 274.2 MB, free: 4.816 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002796/0.006509, allocations: 248 kB / 274.4 MB, free: 4.574 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.006511, allocations: 0 / 274.4 MB, free: 4.574 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.006512, allocations: 0 / 274.4 MB, free: 4.574 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.006518, allocations: 0.5 kB / 274.4 MB, free: 4.574 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.0007872/0.007305, allocations: 0.6895 MB / 275.1 MB, free: 3.84 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.007336, allocations: 12.03 kB / 275.1 MB, free: 3.828 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.267e-05/0.007408, allocations: 56.7 kB / 275.2 MB, free: 3.773 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.007637, allocations: 235.9 kB / 275.4 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.007655, allocations: 16.88 kB / 275.4 MB, free: 3.496 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.749e-05/0.007693, allocations: 32.36 kB / 275.4 MB, free: 3.465 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003265/0.008019, allocations: 237.6 kB / 275.7 MB, free: 3.219 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.008031, allocations: 192 / 275.7 MB, free: 3.219 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.008053, allocations: 8.375 kB / 275.7 MB, free: 3.211 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.008064, allocations: 11.94 kB / 275.7 MB, free: 3.199 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.008187, allocations: 83.31 kB / 275.8 MB, free: 3.121 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.009259, allocations: 1.044 MB / 276.8 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.009437, allocations: 79.16 kB / 276.9 MB, free: 1.906 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.647e-05/0.009474, allocations: 23.67 kB / 276.9 MB, free: 1.879 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.009488, allocations: 0 / 276.9 MB, free: 1.879 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/0.009615, allocations: 112.4 kB / 277 MB, free: 1.746 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 1.112e-06/0.009616, allocations: 0 / 277 MB, free: 1.746 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003351/0.009951, allocations: 145.1 kB / 277.2 MB, free: 1.594 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/0.009984, allocations: 81.09 kB / 277.2 MB, free: 1.496 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.01016, allocations: 328.1 kB / 277.6 MB, free: 1.156 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.01018, allocations: 33.7 kB / 277.6 MB, free: 1.117 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.0103, allocations: 262.6 kB / 277.9 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.01032, allocations: 39.72 kB / 277.9 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.555e-05/0.01039, allocations: 55.53 kB / 278 MB, free: 0.75 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.01052, allocations: 0.5079 MB / 278.5 MB, free: 236 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.866e-05/0.01058, allocations: 49.91 kB / 278.5 MB, free: 180 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.01072, allocations: 217.2 kB / 278.7 MB, free: 15.89 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001749/0.0109, allocations: 260.1 kB / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.0109, allocations: 0 / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002802/0.01118, allocations: 276.7 kB / 279.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.0112, allocations: 37.73 kB / 279.3 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.01121, allocations: 4 kB / 279.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001719/0.01138, allocations: 51.56 kB / 279.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.0115, allocations: 63.84 kB / 279.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000753/0.01225, allocations: 1.721 MB / 281.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001392/0.01239, allocations: 39.83 kB / 281.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.01241, allocations: 11.98 kB / 281.2 MB, free: 13.21 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.0001033/0.01251, allocations: 183.7 kB / 281.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.004e-05/0.01254, allocations: 35.86 kB / 281.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.633e-05/0.01258, allocations: 25.77 kB / 281.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.01258, allocations: 0 / 281.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.01258, allocations: 0 / 281.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.01259, allocations: 4 kB / 281.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002484/0.01284, allocations: 365.5 kB / 281.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.01284, allocations: 0 / 281.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.553e-05/0.0129, allocations: 19.98 kB / 281.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001202/0.01302, allocations: 43.62 kB / 281.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.01303, allocations: 7.984 kB / 281.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006552/0.01368, allocations: 1.718 MB / 283.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.01368, allocations: 3.938 kB / 283.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/0.01385, allocations: 175.5 kB / 283.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.458e-05/0.01388, allocations: 19.84 kB / 283.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.0139, allocations: 8 kB / 283.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.678e-05/0.01398, allocations: 15.92 kB / 283.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.01402, allocations: 15.97 kB / 283.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.01403, allocations: 4 kB / 283.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.14e-05/0.01412, allocations: 205.1 kB / 284 MB, free: 10.2 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01412, allocations: 32 / 284 MB, free: 10.2 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002202/0.01434, allocations: 79.84 kB / 284.1 MB, free: 10.12 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 8.197e-05/0.01442, allocations: 99.25 kB / 284.2 MB, free: 10.01 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003244/0.01475, allocations: 363.1 kB / 284.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.01475, allocations: 0 / 284.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.01487, allocations: 209.7 kB / 284.7 MB, free: 9.387 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002052/0.01508, allocations: 49.12 kB / 284.8 MB, free: 9.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006334/0.01571, allocations: 446.5 kB / 285.2 MB, free: 8.871 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.289e-05/0.01576, allocations: 84.31 kB / 285.3 MB, free: 8.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.316e-05/0.01583, allocations: 26.28 kB / 285.3 MB, free: 8.742 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.01594, allocations: 122.1 kB / 285.4 MB, free: 8.621 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01594, allocations: 4 kB / 285.4 MB, free: 8.617 MB / 266.7 MB Notification: Performance of Templates: time 0.005157/0.0211, allocations: 3.57 MB / 289 MB, free: 5.121 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.765884186606854]