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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=2000,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=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008479/0.000848, allocations: 95.19 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000958/0.0009584, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002649/0.0002651, allocations: 8 kB / 307.8 MB, free: 0.7656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.123, allocations: 51.52 MB / 359.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003969/0.127, allocations: 2.574 MB / 361.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.1289, allocations: 0.7285 MB / 362.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003481/0.1293, allocations: 4 kB / 362.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.1295, allocations: 35.7 kB / 362.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003942/0.1299, allocations: 79.38 kB / 362.7 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004059/0.1303, allocations: 91.91 kB / 362.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005901/0.1309, allocations: 370.5 kB / 363.2 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/0.1312, allocations: 111.5 kB / 363.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002837/0.1315, allocations: 139.4 kB / 363.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000294/0.1318, allocations: 147.3 kB / 363.5 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.364e-05/0.1319, allocations: 16 kB / 363.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.895e-05/0.132, allocations: 23.94 kB / 363.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.184e-05/0.1321, allocations: 51.77 kB / 363.6 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003586/0.1324, allocations: 180.8 kB / 363.8 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000489/0.1329, allocations: 362.9 kB / 364.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1329, allocations: 0 / 364.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.133, allocations: 0 / 364.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.133, allocations: 0 / 364.2 MB, free: 8.336 MB / 302.1 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.001545/0.1345, allocations: 0.6614 MB / 364.8 MB, free: 7.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.1346, allocations: 11.97 kB / 364.8 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.1347, allocations: 36.56 kB / 364.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.1351, allocations: 283.7 kB / 365.1 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.1352, allocations: 28.88 kB / 365.2 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.176e-05/0.1352, allocations: 24.38 kB / 365.2 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008296/0.1361, allocations: 339.9 kB / 365.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.1361, allocations: 0 / 365.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.015e-05/0.1361, allocations: 12 kB / 365.5 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.1362, allocations: 4 kB / 365.5 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009005/0.1371, allocations: 302.1 kB / 365.8 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.1393, allocations: 1.169 MB / 367 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008949/0.1402, allocations: 238.5 kB / 367.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003334/0.1405, allocations: 104.8 kB / 367.3 MB, free: 4.938 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.1406, allocations: 4 kB / 367.4 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005006/0.1411, allocations: 169.2 kB / 367.5 MB, free: 4.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 3.477e-06/0.1411, allocations: 0 / 367.5 MB, free: 4.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001486/0.1426, allocations: 459.1 kB / 368 MB, free: 4.273 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.1427, allocations: 81.11 kB / 368 MB, free: 4.176 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003646/0.143, allocations: 324.5 kB / 368.4 MB, free: 3.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.1431, allocations: 33.69 kB / 368.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.1432, allocations: 207.5 kB / 368.6 MB, free: 3.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.504e-05/0.1433, allocations: 35.55 kB / 368.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.405e-05/0.1433, allocations: 29.7 kB / 368.7 MB, free: 3.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1435, allocations: 334.8 kB / 369 MB, free: 3.203 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000378/0.1438, allocations: 120.1 kB / 369.1 MB, free: 3.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/0.1443, allocations: 226.9 kB / 369.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007919/0.1451, allocations: 367.9 kB / 369.7 MB, free: 2.391 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1451, allocations: 0 / 369.7 MB, free: 2.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001074/0.1462, allocations: 432.1 kB / 370.1 MB, free: 1.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.638e-05/0.1462, allocations: 37.86 kB / 370.1 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.1463, allocations: 8 kB / 370.2 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002173/0.1465, allocations: 32.83 kB / 370.2 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.1468, allocations: 71.83 kB / 370.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.148, allocations: 1.304 MB / 371.6 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.1484, allocations: 67.72 kB / 371.6 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.1484, allocations: 16 kB / 371.6 MB, free: 288 kB / 302.1 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.000177/0.1486, allocations: 156.8 kB / 371.8 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.122e-05/0.1486, allocations: 23.72 kB / 371.8 MB, free: 100 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.411e-05/0.1487, allocations: 34.61 kB / 371.9 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-06/0.1487, allocations: 4 kB / 371.9 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.1487, allocations: 7.984 kB / 371.9 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1487, allocations: 0 / 371.9 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2447/0.3935, allocations: 443.5 kB / 372.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.3935, allocations: 0.5625 kB / 372.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002461/0.3938, allocations: 42.59 kB / 372.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001573/0.394, allocations: 27.66 kB / 372.4 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.394, allocations: 3.25 kB / 372.4 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008967/0.3949, allocations: 1.302 MB / 373.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.3949, allocations: 0.5625 kB / 373.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008914/0.3958, allocations: 306 kB / 374 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.297e-05/0.3959, allocations: 103.8 kB / 374.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.501e-05/0.396, allocations: 3.281 kB / 374.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.3962, allocations: 34.52 kB / 374.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.232e-05/0.3963, allocations: 23.77 kB / 374.1 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.3963, allocations: 7.469 kB / 374.1 MB, free: 17.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002637/0.3966, allocations: 231 kB / 374.4 MB, free: 17.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3966, allocations: 0 / 374.4 MB, free: 17.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003942/0.397, allocations: 68.5 kB / 374.4 MB, free: 17.58 MB / 302.1 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.0001386/0.3971, allocations: 105.1 kB / 374.5 MB, free: 17.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.3982, allocations: 434.2 kB / 375 MB, free: 17.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3982, allocations: 1.844 kB / 375 MB, free: 17.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004966/0.3987, allocations: 236.2 kB / 375.2 MB, free: 17.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.3991, allocations: 48.38 kB / 375.2 MB, free: 17.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.4002, allocations: 0.5837 MB / 375.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.4005, allocations: 0.7522 MB / 376.6 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.4006, allocations: 35.75 kB / 376.6 MB, free: 16.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.498e-05/0.4007, allocations: 22.47 kB / 376.6 MB, free: 16.16 MB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4007, allocations: 1.25 kB / 376.6 MB, free: 16.16 MB / 302.1 MB Notification: Performance of Templates: time 0.007989/0.4087, allocations: 2.941 MB / 379.6 MB, free: 15.99 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches