Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001313, allocations: 111 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001505/0.001505, allocations: 212.9 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.37/1.37, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 63.84 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2364, allocations: 50.55 MB / 410 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003732/0.2402, allocations: 2.768 MB / 412.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.2416, allocations: 0.705 MB / 413.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000207/0.2419, allocations: 4 kB / 413.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001649/0.2421, allocations: 39.58 kB / 413.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002339/0.2423, allocations: 87.25 kB / 413.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003285/0.2426, allocations: 103.8 kB / 413.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005901/0.2432, allocations: 354.5 kB / 414 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002771/0.2435, allocations: 88.67 kB / 414.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002599/0.2438, allocations: 135.4 kB / 414.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002914/0.2441, allocations: 147.4 kB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.349e-05/0.2442, allocations: 28 kB / 414.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.588e-05/0.2443, allocations: 31.94 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.959e-05/0.2444, allocations: 63.77 kB / 414.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002154/0.2446, allocations: 155.2 kB / 414.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003777/0.245, allocations: 328 kB / 415 MB, free: 12.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.245, allocations: 3.938 kB / 415 MB, free: 12.53 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.245, allocations: 0 / 415 MB, free: 12.53 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.245, allocations: 0 / 415 MB, free: 12.53 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001246/0.2463, allocations: 0.634 MB / 415.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2463, allocations: 8.031 kB / 415.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/0.2464, allocations: 32.56 kB / 415.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.2469, allocations: 279.7 kB / 415.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.2469, allocations: 20.81 kB / 415.9 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.823e-05/0.247, allocations: 16.38 kB / 416 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007219/0.2477, allocations: 278.1 kB / 416.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.2477, allocations: 0 / 416.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.343e-05/0.2478, allocations: 12 kB / 416.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.2478, allocations: 8 kB / 416.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007924/0.2486, allocations: 245.5 kB / 416.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.2502, allocations: 0.9441 MB / 417.4 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009177/0.2511, allocations: 238.5 kB / 417.7 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003291/0.2515, allocations: 104.8 kB / 417.8 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.2515, allocations: 4 kB / 417.8 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004615/0.252, allocations: 182 kB / 418 MB, free: 9.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.392e-06/0.252, allocations: 3.938 kB / 418 MB, free: 9.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002451/0.2544, allocations: 0.6473 MB / 418.6 MB, free: 8.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.125e-05/0.2545, allocations: 106.8 kB / 418.7 MB, free: 8.539 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002721/0.2548, allocations: 266.6 kB / 419 MB, free: 8.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.2548, allocations: 33.7 kB / 419 MB, free: 8.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.2549, allocations: 179.7 kB / 419.2 MB, free: 8.055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.45e-05/0.255, allocations: 39.45 kB / 419.2 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.2552, allocations: 45.7 kB / 419.3 MB, free: 7.965 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.2553, allocations: 334.8 kB / 419.6 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003678/0.2557, allocations: 103.9 kB / 419.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004044/0.2561, allocations: 190.1 kB / 419.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007129/0.2568, allocations: 289.9 kB / 420.2 MB, free: 6.984 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2568, allocations: 0 / 420.2 MB, free: 6.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00136/0.2582, allocations: 446 kB / 420.6 MB, free: 6.535 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.2582, allocations: 41.69 kB / 420.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2583, allocations: 4 kB / 420.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003711/0.2586, allocations: 76.8 kB / 420.7 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002067/0.2589, allocations: 47.91 kB / 420.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002969/0.2618, allocations: 2.001 MB / 422.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003373/0.2622, allocations: 59.77 kB / 422.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.2622, allocations: 8 kB / 422.8 MB, free: 4.148 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001347/0.2624, allocations: 145.7 kB / 423 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.2624, allocations: 31.77 kB / 423 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.081e-05/0.2625, allocations: 25.78 kB / 423 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.2625, allocations: 4 kB / 423 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.2625, allocations: 0 / 423 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2625, allocations: 3.984 kB / 423 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.2627, allocations: 289.4 kB / 423.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2628, allocations: 0 / 423.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000139/0.2629, allocations: 23.97 kB / 423.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002645/0.2632, allocations: 80.8 kB / 423.4 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.2632, allocations: 3.938 kB / 423.4 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002257/0.2655, allocations: 1.916 MB / 425.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2655, allocations: 16 kB / 425.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.2665, allocations: 357.1 kB / 425.7 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.897e-05/0.2666, allocations: 104.8 kB / 425.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.714e-05/0.2666, allocations: 0 / 425.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002489/0.2669, allocations: 40 kB / 425.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.782e-05/0.267, allocations: 19.97 kB / 425.9 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.267, allocations: 4 kB / 425.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001715/0.2672, allocations: 198 kB / 426.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2672, allocations: 0 / 426.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003857/0.2676, allocations: 63.91 kB / 426.1 MB, free: 0.6133 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001328/0.2677, allocations: 107.2 kB / 426.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.269, allocations: 486.1 kB / 426.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.269, allocations: 4.125 kB / 426.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004697/0.2695, allocations: 230.6 kB / 426.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.2698, allocations: 63.28 kB / 427 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/0.2731, allocations: 0.9075 MB / 427.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.2735, allocations: 0.7518 MB / 428.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.926e-05/0.2736, allocations: 19.44 kB / 428.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2736, allocations: 0 / 428.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of Templates: time 0.006942/0.2805, allocations: 4.212 MB / 432.9 MB, free: 9.758 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches