Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.00144, allocations: 199 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 226.6 MB / 244.7 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001112/0.001112, allocations: 96.42 kB / 296.8 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000284/0.000284, allocations: 11.98 kB / 356.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2495, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.002911/0.2524, allocations: 2.355 MB / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.2537, allocations: 0.6697 MB / 411.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.2539, allocations: 7.938 kB / 411.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.2541, allocations: 31.75 kB / 411.1 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.2543, allocations: 81.3 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.2546, allocations: 64.75 kB / 411.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003559/0.255, allocations: 318.6 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/0.2553, allocations: 75.03 kB / 411.6 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.2554, allocations: 111.5 kB / 411.8 MB, free: 24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.2556, allocations: 131.4 kB / 411.9 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.541e-05/0.2557, allocations: 19.16 kB / 411.9 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.257e-05/0.2558, allocations: 12 kB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.199e-05/0.2558, allocations: 51.77 kB / 412 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001551/0.256, allocations: 153 kB / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.2563, allocations: 240.3 kB / 412.3 MB, free: 23.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2563, allocations: 0 / 412.3 MB, free: 23.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2563, allocations: 0 / 412.3 MB, free: 23.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.2563, allocations: 0 / 412.3 MB, free: 23.4 MB / 298.7 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.001376/0.2577, allocations: 0.6094 MB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.2577, allocations: 8.031 kB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.805e-05/0.2578, allocations: 32.56 kB / 413 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.2582, allocations: 283.6 kB / 413.3 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.2582, allocations: 16.81 kB / 413.3 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.925e-05/0.2583, allocations: 20.38 kB / 413.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00077/0.2591, allocations: 290.1 kB / 413.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.2591, allocations: 0 / 413.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.2591, allocations: 12 kB / 413.6 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.2591, allocations: 4 kB / 413.6 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009657/0.2601, allocations: 277.5 kB / 413.9 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.2619, allocations: 0.9599 MB / 414.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.2629, allocations: 274.5 kB / 415.1 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004218/0.2634, allocations: 124.7 kB / 415.2 MB, free: 20.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.2634, allocations: 0 / 415.2 MB, free: 20.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005844/0.264, allocations: 196.9 kB / 415.4 MB, free: 20.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.603e-06/0.264, allocations: 0 / 415.4 MB, free: 20.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002956/0.267, allocations: 0.7332 MB / 416.2 MB, free: 19.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.2671, allocations: 106.8 kB / 416.3 MB, free: 19.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004098/0.2675, allocations: 266.5 kB / 416.5 MB, free: 18.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.2675, allocations: 29.7 kB / 416.6 MB, free: 18.92 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.2677, allocations: 179.8 kB / 416.7 MB, free: 18.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.231e-05/0.2677, allocations: 35.45 kB / 416.8 MB, free: 18.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.865e-05/0.2678, allocations: 12 kB / 416.8 MB, free: 18.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.567e-05/0.2679, allocations: 338.8 kB / 417.1 MB, free: 18.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004847/0.2683, allocations: 111.9 kB / 417.2 MB, free: 18.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005281/0.2689, allocations: 198.1 kB / 417.4 MB, free: 18.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009647/0.2699, allocations: 320.6 kB / 417.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.2699, allocations: 7.938 kB / 417.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001693/0.2716, allocations: 483.6 kB / 418.2 MB, free: 17.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.2716, allocations: 33.7 kB / 418.2 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.2717, allocations: 0 / 418.2 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004693/0.2721, allocations: 88.86 kB / 418.3 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002845/0.2724, allocations: 47.91 kB / 418.4 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003241/0.2757, allocations: 1.854 MB / 420.2 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004984/0.2762, allocations: 71.73 kB / 420.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.164e-05/0.2763, allocations: 12 kB / 420.3 MB, free: 14.92 MB / 298.7 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001763/0.2765, allocations: 134.6 kB / 420.4 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.88e-05/0.2765, allocations: 23.72 kB / 420.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.105e-05/0.2766, allocations: 26.05 kB / 420.5 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.2766, allocations: 4 kB / 420.5 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2766, allocations: 7.875 kB / 420.5 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.2766, allocations: 4 kB / 420.5 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002782/0.2769, allocations: 289.4 kB / 420.8 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2769, allocations: 4 kB / 420.8 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001878/0.2771, allocations: 27.98 kB / 420.8 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003579/0.2775, allocations: 76.8 kB / 420.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.2775, allocations: 16.11 kB / 420.9 MB, free: 14.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002528/0.2801, allocations: 1.768 MB / 422.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2801, allocations: 0 / 422.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/0.2815, allocations: 397.5 kB / 423.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.693e-05/0.2815, allocations: 104.8 kB / 423.2 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.241e-05/0.2816, allocations: 8 kB / 423.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003473/0.282, allocations: 43.89 kB / 423.2 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/0.2821, allocations: 23.91 kB / 423.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.2821, allocations: 4 kB / 423.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002217/0.2823, allocations: 194 kB / 423.4 MB, free: 11.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2823, allocations: 0 / 423.4 MB, free: 11.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006669/0.283, allocations: 67.91 kB / 423.5 MB, free: 11.5 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001547/0.2832, allocations: 104.5 kB / 423.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.2848, allocations: 0.5018 MB / 424.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.2848, allocations: 0 / 424.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005995/0.2854, allocations: 247 kB / 424.3 MB, free: 10.6 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004826/0.2859, allocations: 54.2 kB / 424.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003967/0.2899, allocations: 1.069 MB / 425.5 MB, free: 9.457 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001889/0.2901, allocations: 0.7521 MB / 426.2 MB, free: 8.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.2902, allocations: 19.44 kB / 426.2 MB, free: 8.66 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.2903, allocations: 0 / 426.2 MB, free: 8.66 MB / 298.7 MB Notification: Performance of Templates: time 0.007341/0.2976, allocations: 4.152 MB / 430.4 MB, free: 4.52 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches