Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001415/0.001415, allocations: 83.67 kB / 21.7 MB, free: 2.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001562, allocations: 163 kB / 24.99 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.976/0.976, allocations: 177 MB / 205.2 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 273 MB, free: 1.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/2.863e-05, allocations: 5.266 kB / 273 MB, free: 1.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00578/0.005809, allocations: 2.919 MB / 276 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.007317, allocations: 0.7127 MB / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002102/0.007527, allocations: 4 kB / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.007712, allocations: 47.5 kB / 276.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000279/0.007991, allocations: 115 kB / 276.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003217/0.008312, allocations: 91.81 kB / 276.9 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004686/0.008781, allocations: 410.1 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002256/0.009007, allocations: 96.44 kB / 277.4 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003256/0.009332, allocations: 219.5 kB / 277.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002329/0.009565, allocations: 143.5 kB / 277.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.177e-05/0.009627, allocations: 40 kB / 277.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003142/0.009941, allocations: 36 kB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.501e-05/0.01002, allocations: 75.69 kB / 277.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.01016, allocations: 123.7 kB / 278 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004095/0.01057, allocations: 251.1 kB / 278.3 MB, free: 12.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.269e-06/0.01057, allocations: 0 / 278.3 MB, free: 12.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.01057, allocations: 0 / 278.3 MB, free: 12.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.01058, allocations: 4 kB / 278.3 MB, free: 12.44 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001107/0.01169, allocations: 0.6857 MB / 279 MB, free: 11.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.01174, allocations: 15.97 kB / 279 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.01187, allocations: 56.7 kB / 279 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003927/0.01226, allocations: 252.8 kB / 279.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.01229, allocations: 17.03 kB / 279.3 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.397e-05/0.01233, allocations: 32.38 kB / 279.3 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005199/0.01285, allocations: 245 kB / 279.6 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.01287, allocations: 192 / 279.6 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.0129, allocations: 12.38 kB / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.01292, allocations: 7.938 kB / 279.6 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002716/0.01319, allocations: 103.9 kB / 279.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.01434, allocations: 0.9252 MB / 280.6 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.01455, allocations: 75.19 kB / 280.7 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.541e-05/0.0146, allocations: 39.67 kB / 280.7 MB, free: 9.809 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.01462, allocations: 4 kB / 280.7 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001847/0.01481, allocations: 149.7 kB / 280.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.463e-06/0.01481, allocations: 0 / 280.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004504/0.01526, allocations: 173.3 kB / 281.1 MB, free: 9.445 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.759e-05/0.01532, allocations: 106.8 kB / 281.2 MB, free: 9.316 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.01557, allocations: 336.1 kB / 281.5 MB, free: 8.969 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.01559, allocations: 33.83 kB / 281.5 MB, free: 8.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.01573, allocations: 262.6 kB / 281.8 MB, free: 8.668 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.01576, allocations: 43.69 kB / 281.8 MB, free: 8.625 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-05/0.01584, allocations: 63.34 kB / 281.9 MB, free: 8.555 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.01601, allocations: 0.5001 MB / 282.4 MB, free: 8.043 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.036e-05/0.0161, allocations: 65.61 kB / 282.4 MB, free: 7.973 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.01624, allocations: 256.5 kB / 282.7 MB, free: 7.637 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002068/0.01645, allocations: 264.1 kB / 283 MB, free: 7.301 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.01645, allocations: 4 kB / 283 MB, free: 7.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003682/0.01682, allocations: 315 kB / 283.3 MB, free: 6.969 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.01686, allocations: 38.2 kB / 283.3 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.01687, allocations: 4 kB / 283.3 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002376/0.01711, allocations: 51.58 kB / 283.4 MB, free: 6.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.01723, allocations: 51.91 kB / 283.4 MB, free: 6.816 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.01841, allocations: 1.756 MB / 285.2 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.01866, allocations: 47.75 kB / 285.2 MB, free: 4.895 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.158e-05/0.01869, allocations: 12 kB / 285.2 MB, free: 4.883 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: 7 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,opAmp.satNeg,opAmp.satPos,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * 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.0001314/0.01882, allocations: 181.2 kB / 285.4 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.485e-05/0.01885, allocations: 27.86 kB / 285.4 MB, free: 4.668 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/0.01889, allocations: 29.83 kB / 285.5 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.01889, allocations: 0 / 285.5 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.0189, allocations: 4 kB / 285.5 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.0189, allocations: 0 / 285.5 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000332/0.01923, allocations: 420.9 kB / 285.9 MB, free: 4.176 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.01923, allocations: 0 / 285.9 MB, free: 4.176 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.038e-05/0.01929, allocations: 23.92 kB / 285.9 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001387/0.01943, allocations: 43.67 kB / 285.9 MB, free: 4.105 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.01945, allocations: 4 kB / 285.9 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007058/0.02015, allocations: 1.744 MB / 287.7 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.02015, allocations: 4 kB / 287.7 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002018/0.02036, allocations: 179.7 kB / 287.9 MB, free: 2.023 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.989e-05/0.02038, allocations: 35.73 kB / 287.9 MB, free: 1.988 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.02041, allocations: 0 / 287.9 MB, free: 1.988 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.087e-05/0.02049, allocations: 19.98 kB / 287.9 MB, free: 1.969 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.482e-05/0.02055, allocations: 15.97 kB / 287.9 MB, free: 1.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.02056, allocations: 7.984 kB / 287.9 MB, free: 1.945 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001277/0.02069, allocations: 221.1 kB / 288.2 MB, free: 1.734 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02069, allocations: 0 / 288.2 MB, free: 1.734 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002366/0.02093, allocations: 75.83 kB / 288.2 MB, free: 1.66 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: 5 ($whenCondition1,opAmp.satPos,opAmp.satNeg,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 (12): * Single equations (assignments): 9 * 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.0001132/0.02104, allocations: 103.7 kB / 288.3 MB, free: 1.551 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004212/0.02146, allocations: 385.5 kB / 288.7 MB, free: 1.137 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.02146, allocations: 4.938 kB / 288.7 MB, free: 1.133 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001938/0.02166, allocations: 229.3 kB / 288.9 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.02193, allocations: 64.03 kB / 289 MB, free: 0.832 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008693/0.0228, allocations: 474.5 kB / 289.5 MB, free: 344 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.71e-05/0.02285, allocations: 80.31 kB / 289.5 MB, free: 244 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.543e-05/0.02293, allocations: 30.28 kB / 289.6 MB, free: 208 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.325e-05/0.02299, allocations: 28.5 kB / 289.6 MB, free: 180 kB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.02299, allocations: 0 / 289.6 MB, free: 180 kB / 266.7 MB Notification: Performance of Templates: time 0.00592/0.02891, allocations: 3.487 MB / 293.1 MB, free: 12.74 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.9930682168342173]