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.001229/0.001229, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 204.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001/0.001, allocations: 56.14 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2107/0.2117, allocations: 50.55 MB / 410 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005012/0.2167, allocations: 2.902 MB / 412.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.2183, allocations: 0.7206 MB / 413.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.2184, allocations: 8 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.2187, allocations: 55.5 kB / 413.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001823/0.2188, allocations: 95.17 kB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004584/0.2193, allocations: 111.8 kB / 413.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006122/0.2199, allocations: 394.4 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004227/0.2204, allocations: 135.9 kB / 414.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.2206, allocations: 151.4 kB / 414.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.2208, allocations: 171.2 kB / 414.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001529/0.2209, allocations: 40 kB / 414.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.414e-05/0.221, allocations: 36 kB / 414.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.177e-05/0.2211, allocations: 79.67 kB / 414.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001733/0.2212, allocations: 175.1 kB / 415 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003934/0.2216, allocations: 387.8 kB / 415.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2217, allocations: 0 / 415.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2217, allocations: 0 / 415.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.2217, allocations: 0 / 415.4 MB, free: 12.14 MB / 334.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.001697/0.2234, allocations: 0.6925 MB / 416.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.2234, allocations: 8.031 kB / 416.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.034e-05/0.2235, allocations: 40.56 kB / 416.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004563/0.224, allocations: 291.5 kB / 416.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.224, allocations: 20.94 kB / 416.4 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002518/0.2243, allocations: 28.31 kB / 416.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008754/0.2251, allocations: 327.9 kB / 416.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.2252, allocations: 0 / 416.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.049e-05/0.2252, allocations: 12 kB / 416.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.2252, allocations: 4 kB / 416.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000906/0.2261, allocations: 282 kB / 417.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/0.2284, allocations: 1.122 MB / 418.2 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009277/0.2293, allocations: 210.5 kB / 418.4 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003787/0.2297, allocations: 92.78 kB / 418.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.2298, allocations: 0 / 418.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004601/0.2302, allocations: 153.1 kB / 418.6 MB, free: 8.656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.2303, allocations: 4 kB / 418.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001427/0.2317, allocations: 415 kB / 419.1 MB, free: 8.219 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002101/0.2319, allocations: 89.03 kB / 419.1 MB, free: 8.113 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004164/0.2323, allocations: 324.5 kB / 419.5 MB, free: 7.797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.2324, allocations: 29.7 kB / 419.5 MB, free: 7.762 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002612/0.2326, allocations: 203.5 kB / 419.7 MB, free: 7.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.768e-05/0.2327, allocations: 39.53 kB / 419.7 MB, free: 7.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/0.233, allocations: 57.83 kB / 419.8 MB, free: 7.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002143/0.2332, allocations: 334.8 kB / 420.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003885/0.2336, allocations: 100.2 kB / 420.2 MB, free: 7.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.234, allocations: 214.9 kB / 420.4 MB, free: 6.758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007954/0.2348, allocations: 332 kB / 420.7 MB, free: 6.375 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2348, allocations: 0 / 420.7 MB, free: 6.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001024/0.2359, allocations: 403.2 kB / 421.1 MB, free: 5.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.62e-05/0.2359, allocations: 38.08 kB / 421.2 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.2359, allocations: 4 kB / 421.2 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002396/0.2362, allocations: 28.83 kB / 421.2 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002999/0.2365, allocations: 72.05 kB / 421.3 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.2378, allocations: 1.41 MB / 422.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003669/0.2381, allocations: 55.56 kB / 422.7 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.2382, allocations: 8 kB / 422.7 MB, free: 4.199 MB / 334.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.0001516/0.2383, allocations: 157.8 kB / 422.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.603e-05/0.2384, allocations: 23.72 kB / 422.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.068e-05/0.2385, allocations: 26.61 kB / 422.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2385, allocations: 4 kB / 423 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2385, allocations: 3.938 kB / 423 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.2385, allocations: 0 / 423 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/0.2391, allocations: 451.1 kB / 423.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.2391, allocations: 4 kB / 423.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.2393, allocations: 39.94 kB / 423.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001045/0.2394, allocations: 32.72 kB / 423.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.2394, allocations: 7.969 kB / 423.5 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/0.2405, allocations: 1.387 MB / 424.9 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2405, allocations: 4.031 kB / 424.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007814/0.2413, allocations: 270.5 kB / 425.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.79e-05/0.2414, allocations: 104.8 kB / 425.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.364e-05/0.2414, allocations: 4 kB / 425.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.2417, allocations: 27.95 kB / 425.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.086e-05/0.2418, allocations: 19.92 kB / 425.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.2418, allocations: 0 / 425.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003019/0.2421, allocations: 235.1 kB / 425.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2421, allocations: 4 kB / 425.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000402/0.2425, allocations: 67.84 kB / 425.6 MB, free: 1.105 MB / 334.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.0001333/0.2427, allocations: 107.2 kB / 425.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.2437, allocations: 406 kB / 426.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2437, allocations: 0 / 426.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004892/0.2442, allocations: 219.4 kB / 426.3 MB, free: 348 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.2446, allocations: 51.28 kB / 426.4 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.2456, allocations: 0.4987 MB / 426.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.246, allocations: 0.7518 MB / 427.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.794e-05/0.2461, allocations: 27.42 kB / 427.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2461, allocations: 3.938 kB / 427.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of Templates: time 0.00654/0.2526, allocations: 4.678 MB / 432.3 MB, free: 10.28 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/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