Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 92.53 kB / 16.3 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 184.9 kB / 17.2 MB, free: 5.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 223.2 MB / 241.1 MB, free: 272 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002757/0.0002757, allocations: 11.94 kB / 300.7 MB, free: 6.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1105, allocations: 50.41 MB / 351.1 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.002893/0.1134, allocations: 2.239 MB / 353.4 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.1145, allocations: 0.6589 MB / 354 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.1146, allocations: 7.938 kB / 354.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.418e-05/0.1147, allocations: 31.75 kB / 354.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002199/0.1149, allocations: 99.66 kB / 354.2 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.1151, allocations: 75.84 kB / 354.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003033/0.1155, allocations: 223.6 kB / 354.5 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.1156, allocations: 65.86 kB / 354.5 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.1158, allocations: 119.5 kB / 354.7 MB, free: 492 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001624/0.116, allocations: 123.5 kB / 354.8 MB, free: 368 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.01e-05/0.116, allocations: 16 kB / 354.8 MB, free: 352 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.945e-05/0.1161, allocations: 12 kB / 354.8 MB, free: 340 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.326e-05/0.1161, allocations: 43.83 kB / 354.8 MB, free: 296 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.471e-05/0.1162, allocations: 81.5 kB / 354.9 MB, free: 208 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.1165, allocations: 235.6 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1165, allocations: 0 / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1165, allocations: 3.938 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.1165, allocations: 0 / 355.2 MB, free: 15.97 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001123/0.1176, allocations: 0.6183 MB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.1177, allocations: 8.031 kB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.004e-05/0.1177, allocations: 27.72 kB / 355.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/0.118, allocations: 270.5 kB / 356.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.1181, allocations: 16.44 kB / 356.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.016e-05/0.1181, allocations: 16 kB / 356.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006209/0.1187, allocations: 293.7 kB / 356.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.1188, allocations: 4 kB / 356.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.1188, allocations: 11.95 kB / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.1188, allocations: 4 kB / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007458/0.1196, allocations: 277.6 kB / 356.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.1211, allocations: 0.9675 MB / 357.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008525/0.122, allocations: 274.6 kB / 357.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.122, allocations: 4 kB / 357.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005324/0.1225, allocations: 193.8 kB / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.423e-06/0.1225, allocations: 0 / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002352/0.1249, allocations: 0.7363 MB / 358.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.125, allocations: 102.8 kB / 359 MB, free: 11.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.1252, allocations: 266.6 kB / 359.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.1253, allocations: 29.92 kB / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.1254, allocations: 171.9 kB / 359.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.1254, allocations: 43.39 kB / 359.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.21e-05/0.1254, allocations: 4 kB / 359.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.915e-05/0.1255, allocations: 338.8 kB / 359.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.1259, allocations: 111.9 kB / 359.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003624/0.1262, allocations: 183.2 kB / 360.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/0.1266, allocations: 149.5 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1266, allocations: 0 / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001165/0.1278, allocations: 482.2 kB / 360.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.1278, allocations: 33.7 kB / 360.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.1278, allocations: 0 / 360.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003787/0.1282, allocations: 84.86 kB / 360.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.1284, allocations: 47.91 kB / 360.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002517/0.131, allocations: 1.815 MB / 362.7 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003277/0.1313, allocations: 63.92 kB / 362.7 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.1313, allocations: 16 kB / 362.7 MB, free: 7.898 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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.0001446/0.1315, allocations: 133.8 kB / 362.9 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.642e-05/0.1315, allocations: 23.72 kB / 362.9 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.581e-05/0.1316, allocations: 25.83 kB / 362.9 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.1316, allocations: 11.89 kB / 362.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.1316, allocations: 0 / 362.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1316, allocations: 0 / 362.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002681/0.1319, allocations: 297.4 kB / 363.2 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1319, allocations: 0 / 363.2 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001425/0.1321, allocations: 27.97 kB / 363.3 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000269/0.1323, allocations: 80.8 kB / 363.3 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/0.1324, allocations: 4 kB / 363.3 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002171/0.1345, allocations: 1.706 MB / 365 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.1346, allocations: 4 kB / 365 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.1357, allocations: 397.5 kB / 365.4 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.177e-05/0.1358, allocations: 92.92 kB / 365.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.1358, allocations: 11.92 kB / 365.5 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.1361, allocations: 39.97 kB / 365.6 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.844e-05/0.1362, allocations: 23.97 kB / 365.6 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.1362, allocations: 4 kB / 365.6 MB, free: 4.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.1364, allocations: 190 kB / 365.8 MB, free: 4.621 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.1364, allocations: 0 / 365.8 MB, free: 4.621 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003732/0.1368, allocations: 71.78 kB / 365.9 MB, free: 4.551 MB / 302.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 (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.0001519/0.1369, allocations: 103.2 kB / 366 MB, free: 4.438 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.138, allocations: 441.8 kB / 366.4 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.138, allocations: 0 / 366.4 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004646/0.1385, allocations: 238.9 kB / 366.6 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.1387, allocations: 44.48 kB / 366.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009511/0.1397, allocations: 0.5201 MB / 367.2 MB, free: 3.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.14, allocations: 0.756 MB / 367.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.1401, allocations: 22.3 kB / 368 MB, free: 2.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.841e-05/0.1402, allocations: 23.44 kB / 368 MB, free: 2.32 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1403, allocations: 3.938 kB / 368 MB, free: 2.316 MB / 302.1 MB Notification: Performance of Templates: time 0.2255/0.3658, allocations: 3.355 MB / 371.3 MB, free: 24.43 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches