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.001334/0.001334, allocations: 115.2 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.89 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2318, allocations: 50.54 MB / 410 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004059/0.2359, allocations: 2.905 MB / 412.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.2374, allocations: 0.7245 MB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.2377, allocations: 4 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.2379, allocations: 51.44 kB / 413.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002849/0.2382, allocations: 99.19 kB / 413.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003517/0.2386, allocations: 111.8 kB / 413.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004863/0.2391, allocations: 394.5 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002453/0.2393, allocations: 131.9 kB / 414.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002331/0.2396, allocations: 155.4 kB / 414.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.2398, allocations: 167.3 kB / 414.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.952e-05/0.2399, allocations: 43.94 kB / 414.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.851e-05/0.24, allocations: 36 kB / 414.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.132e-05/0.24, allocations: 75.75 kB / 414.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.2402, allocations: 167.1 kB / 415 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004009/0.2406, allocations: 395.8 kB / 415.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2406, allocations: 0 / 415.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2406, allocations: 0 / 415.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.2407, allocations: 4 kB / 415.4 MB, free: 12.13 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.001402/0.2421, allocations: 0.6925 MB / 416.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2421, allocations: 8.031 kB / 416.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.882e-05/0.2422, allocations: 32.56 kB / 416.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004308/0.2427, allocations: 295.6 kB / 416.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.2427, allocations: 20.94 kB / 416.4 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.053e-05/0.2427, allocations: 28.31 kB / 416.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007126/0.2435, allocations: 327.9 kB / 416.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.2435, allocations: 0 / 416.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.815e-05/0.2435, allocations: 8 kB / 416.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.2435, allocations: 8 kB / 416.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008074/0.2443, allocations: 270.1 kB / 417.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.2462, allocations: 1.138 MB / 418.2 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008154/0.247, allocations: 214.5 kB / 418.4 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003177/0.2473, allocations: 84.78 kB / 418.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.2474, allocations: 0 / 418.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004325/0.2478, allocations: 161.1 kB / 418.6 MB, free: 8.648 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.2478, allocations: 0 / 418.6 MB, free: 8.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001294/0.2491, allocations: 415 kB / 419.1 MB, free: 8.215 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.2492, allocations: 77.11 kB / 419.1 MB, free: 8.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003458/0.2495, allocations: 328.5 kB / 419.5 MB, free: 7.801 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.2496, allocations: 33.64 kB / 419.5 MB, free: 7.762 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.2497, allocations: 207.5 kB / 419.7 MB, free: 7.555 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.2497, allocations: 39.55 kB / 419.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.952e-05/0.2498, allocations: 53.83 kB / 419.8 MB, free: 7.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.25, allocations: 338.8 kB / 420.1 MB, free: 7.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.2503, allocations: 96.16 kB / 420.2 MB, free: 7.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.2507, allocations: 219 kB / 420.4 MB, free: 6.754 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007146/0.2514, allocations: 327.9 kB / 420.7 MB, free: 6.375 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.2515, allocations: 7.984 kB / 420.7 MB, free: 6.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009846/0.2524, allocations: 395.8 kB / 421.1 MB, free: 5.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.32e-05/0.2525, allocations: 40.92 kB / 421.2 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.2525, allocations: 4 kB / 421.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001762/0.2527, allocations: 28.84 kB / 421.2 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000277/0.253, allocations: 63.88 kB / 421.3 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.254, allocations: 1.406 MB / 422.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003499/0.2544, allocations: 59.72 kB / 422.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.2544, allocations: 16 kB / 422.7 MB, free: 4.195 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.0001465/0.2546, allocations: 145.7 kB / 422.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.112e-05/0.2546, allocations: 27.7 kB / 422.9 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.284e-05/0.2547, allocations: 30.61 kB / 422.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2547, allocations: 4 kB / 422.9 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2547, allocations: 3.938 kB / 423 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.2547, allocations: 11.92 kB / 423 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004181/0.2551, allocations: 451.1 kB / 423.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.2551, allocations: 4 kB / 423.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.2553, allocations: 27.97 kB / 423.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001036/0.2554, allocations: 32.81 kB / 423.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.2555, allocations: 7.984 kB / 423.5 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009041/0.2564, allocations: 1.394 MB / 424.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2564, allocations: 0 / 424.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007533/0.2572, allocations: 270.4 kB / 425.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.167e-05/0.2572, allocations: 104.8 kB / 425.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.551e-05/0.2573, allocations: 4 kB / 425.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.2575, allocations: 31.95 kB / 425.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.967e-05/0.2576, allocations: 19.92 kB / 425.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.2576, allocations: 4 kB / 425.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002195/0.2579, allocations: 227.1 kB / 425.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2579, allocations: 0 / 425.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000341/0.2582, allocations: 71.84 kB / 425.6 MB, free: 1.102 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.0001364/0.2584, allocations: 110.7 kB / 425.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009622/0.2593, allocations: 402.1 kB / 426.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2593, allocations: 0 / 426.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004595/0.2598, allocations: 219.3 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.0003331/0.2602, allocations: 52.05 kB / 426.4 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009858/0.2612, allocations: 0.5008 MB / 426.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.2614, 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.951e-05/0.2615, allocations: 27.44 kB / 427.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.2615, allocations: 0 / 427.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of Templates: time 0.006605/0.2681, allocations: 4.649 MB / 432.3 MB, free: 10.31 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