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.001314/0.001314, allocations: 80.41 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001573/0.001573, allocations: 167.6 kB / 25.61 MB, free: 8.902 MB / 18.57 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 0.9654/0.9654, allocations: 177.1 MB / 206 MB, free: 4.488 MB / 186.7 MB " [Timeout remaining time 179] 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 2.124e-06/2.124e-06, allocations: 3.938 kB / 274.2 MB, free: 4.367 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.824e-05/3.037e-05, allocations: 4.406 kB / 274.2 MB, free: 4.363 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004686/0.004716, allocations: 2.862 MB / 277.1 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.006376, allocations: 0.708 MB / 277.8 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002099/0.006586, allocations: 8.531 kB / 277.8 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002095/0.006796, allocations: 53.38 kB / 277.9 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002532/0.007049, allocations: 107.1 kB / 278 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003651/0.007414, allocations: 115.7 kB / 278.1 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005084/0.007922, allocations: 398.3 kB / 278.5 MB, free: 120 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.008146, allocations: 92.48 kB / 278.6 MB, free: 28 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003449/0.008491, allocations: 223.5 kB / 278.8 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002351/0.008726, allocations: 127.6 kB / 278.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.82e-05/0.008795, allocations: 40 kB / 279 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.636e-05/0.008851, allocations: 36 kB / 279 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.826e-05/0.008929, allocations: 87.66 kB / 279.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.009069, allocations: 115.7 kB / 279.2 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003622/0.009431, allocations: 251.1 kB / 279.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.009435, allocations: 4 kB / 279.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.009436, allocations: 0 / 279.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.009443, allocations: 0 / 279.4 MB, free: 15.16 MB / 266.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.001126/0.01057, allocations: 0.7012 MB / 280.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.01061, allocations: 15.98 kB / 280.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.01074, allocations: 52.7 kB / 280.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.01109, allocations: 228 kB / 280.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/0.01112, allocations: 20.88 kB / 280.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.935e-05/0.01116, allocations: 24.31 kB / 280.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000457/0.01162, allocations: 241.6 kB / 280.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.01163, allocations: 4.188 kB / 280.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/0.01165, allocations: 8.375 kB / 280.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.01167, allocations: 11.94 kB / 280.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.01185, allocations: 83.41 kB / 280.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.01331, allocations: 1.044 MB / 281.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002515/0.01356, allocations: 75.06 kB / 281.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.246e-05/0.01361, allocations: 27.7 kB / 282 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.01363, allocations: 0 / 282 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001716/0.0138, allocations: 108.5 kB / 282.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.0138, allocations: 0 / 282.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004436/0.01425, allocations: 145.4 kB / 282.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.01429, allocations: 89.05 kB / 282.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.01456, allocations: 327.9 kB / 282.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.01458, allocations: 29.7 kB / 282.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.01474, allocations: 266.6 kB / 282.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.278e-05/0.01477, allocations: 35.73 kB / 282.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.478e-05/0.01486, allocations: 59.52 kB / 283 MB, free: 11.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.01503, allocations: 0.5079 MB / 283.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.983e-05/0.01511, allocations: 50.03 kB / 283.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.01527, allocations: 205.6 kB / 283.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/0.01552, allocations: 260.1 kB / 284 MB, free: 10.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.01552, allocations: 0 / 284 MB, free: 10.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004246/0.01595, allocations: 292.2 kB / 284.3 MB, free: 9.832 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.01598, allocations: 29.7 kB / 284.3 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.01599, allocations: 4 kB / 284.3 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002403/0.01623, allocations: 55.89 kB / 284.4 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001874/0.01642, allocations: 55.91 kB / 284.4 MB, free: 9.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.01746, allocations: 1.729 MB / 286.2 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.01769, allocations: 43.94 kB / 286.2 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.01771, allocations: 12 kB / 286.2 MB, free: 7.785 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.0001307/0.01784, allocations: 176.5 kB / 286.4 MB, free: 7.602 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.315e-05/0.01789, allocations: 31.75 kB / 286.4 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.27e-05/0.01793, allocations: 29.77 kB / 286.4 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.01793, allocations: 0 / 286.4 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.01793, allocations: 0 / 286.4 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.01794, allocations: 4 kB / 286.5 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003465/0.01829, allocations: 365.5 kB / 286.8 MB, free: 7.141 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.01829, allocations: 4.031 kB / 286.8 MB, free: 7.137 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.305e-05/0.01838, allocations: 19.98 kB / 286.8 MB, free: 7.117 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001773/0.01856, allocations: 43.62 kB / 286.9 MB, free: 7.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.01857, allocations: 8 kB / 286.9 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009311/0.0195, allocations: 1.717 MB / 288.6 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.0195, allocations: 0 / 288.6 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002449/0.01975, allocations: 167.5 kB / 288.8 MB, free: 5.035 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.843e-05/0.01979, allocations: 23.78 kB / 288.8 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.413e-05/0.01982, allocations: 8 kB / 288.8 MB, free: 5.004 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.01995, allocations: 20.05 kB / 288.8 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.667e-05/0.02001, allocations: 15.97 kB / 288.8 MB, free: 4.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-06/0.02002, allocations: 4 kB / 288.8 MB, free: 4.965 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001576/0.02018, allocations: 205.1 kB / 289 MB, free: 4.766 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02018, allocations: 4 kB / 289 MB, free: 4.762 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003967/0.02057, allocations: 79.83 kB / 289.1 MB, free: 4.684 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.0001311/0.0207, allocations: 95.25 kB / 289.2 MB, free: 4.582 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004574/0.02116, allocations: 365.7 kB / 289.6 MB, free: 4.188 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.02116, allocations: 0 / 289.6 MB, free: 4.188 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002126/0.02138, allocations: 213.4 kB / 289.8 MB, free: 3.957 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.02169, allocations: 56.83 kB / 289.8 MB, free: 3.906 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.02273, allocations: 454.5 kB / 290.3 MB, free: 3.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.094e-05/0.02279, allocations: 84.31 kB / 290.4 MB, free: 3.328 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000117/0.0229, allocations: 30.28 kB / 290.4 MB, free: 3.293 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.02306, allocations: 110.2 kB / 290.5 MB, free: 3.184 MB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.02306, allocations: 0 / 290.5 MB, free: 3.184 MB / 266.7 MB Notification: Performance of Templates: time 0.008023/0.03108, allocations: 3.602 MB / 294.1 MB, free: 15.64 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] 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","",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.7599466359242797]