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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 160.9 kB / 24.91 MB, free: 8.719 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9793/0.9793, allocations: 177 MB / 205.2 MB, free: 5.02 MB / 186.7 MB " [Timeout remaining time 179] 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=1000,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=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 273.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.979e-05/2.113e-05, allocations: 6.312 kB / 273.4 MB, free: 1.008 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.002912/0.002933, allocations: 2.786 MB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.004112, allocations: 0.697 MB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.004278, allocations: 7.938 kB / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.004424, allocations: 43.52 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.004607, allocations: 99.12 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.004877, allocations: 99.73 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003179/0.005194, allocations: 362.4 kB / 277.5 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.005329, allocations: 62.7 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001941/0.005523, allocations: 199.5 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.005661, allocations: 119.6 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.624e-05/0.005698, allocations: 28 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.104e-05/0.005729, allocations: 32 kB / 277.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.838e-05/0.005777, allocations: 63.75 kB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.459e-05/0.005862, allocations: 103.7 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002667/0.006128, allocations: 219.2 kB / 278.3 MB, free: 12.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.295e-06/0.006131, allocations: 8 kB / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.006132, allocations: 0 / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.006136, allocations: 3.938 kB / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0006342/0.006771, allocations: 0.522 MB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.006806, allocations: 11.98 kB / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.1e-05/0.006867, allocations: 44.91 kB / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002205/0.007087, allocations: 181.3 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.007102, allocations: 16.88 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.007127, allocations: 24.38 kB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002385/0.007365, allocations: 254.3 kB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.007374, allocations: 192 / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.00739, allocations: 8.375 kB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.007397, allocations: 11.88 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.066e-05/0.007477, allocations: 67.47 kB / 279.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007562/0.008234, allocations: 0.6313 MB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.0084, allocations: 94.5 kB / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.622e-05/0.008436, allocations: 24.86 kB / 280.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.008452, allocations: 4 kB / 280.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001814/0.008634, allocations: 207.8 kB / 280.4 MB, free: 9.805 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 2.144e-06/0.008636, allocations: 0 / 280.4 MB, free: 9.805 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004893/0.009125, allocations: 218.5 kB / 280.6 MB, free: 9.582 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.009178, allocations: 136.5 kB / 280.8 MB, free: 9.418 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.009314, allocations: 233 kB / 281 MB, free: 9.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.009333, allocations: 33.7 kB / 281 MB, free: 9.141 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.011e-05/0.009403, allocations: 176.6 kB / 281.2 MB, free: 8.961 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.009429, allocations: 47.56 kB / 281.2 MB, free: 8.914 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.712e-05/0.009486, allocations: 53.88 kB / 281.3 MB, free: 8.855 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.363e-05/0.00957, allocations: 338.7 kB / 281.6 MB, free: 8.516 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.82e-05/0.009618, allocations: 58.16 kB / 281.7 MB, free: 8.453 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.009722, allocations: 210 kB / 281.9 MB, free: 8.188 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001161/0.009838, allocations: 153.2 kB / 282 MB, free: 8.004 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.009841, allocations: 0 / 282 MB, free: 8.004 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002554/0.0101, allocations: 252.9 kB / 282.3 MB, free: 7.738 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.01013, allocations: 41.62 kB / 282.3 MB, free: 7.691 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.01014, allocations: 0 / 282.3 MB, free: 7.691 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002471/0.01038, allocations: 76.78 kB / 282.4 MB, free: 7.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.247e-05/0.01048, allocations: 39.95 kB / 282.4 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001009/0.01148, allocations: 1.51 MB / 283.9 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.01161, allocations: 47.86 kB / 284 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.01163, allocations: 7.938 kB / 284 MB, free: 5.918 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,opAmp.satNeg,opAmp.satPos,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 20 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 8.483e-05/0.01171, allocations: 129.7 kB / 284.1 MB, free: 5.781 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.398e-05/0.01174, allocations: 27.91 kB / 284.2 MB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.526e-05/0.01176, allocations: 30.11 kB / 284.2 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.01176, allocations: 0 / 284.2 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.01176, allocations: 0 / 284.2 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.01177, allocations: 0 / 284.2 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001084/0.01188, allocations: 137.7 kB / 284.3 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.01188, allocations: 8 kB / 284.3 MB, free: 5.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.849e-05/0.01193, allocations: 19.92 kB / 284.3 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001863/0.01212, allocations: 72.77 kB / 284.4 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.01212, allocations: 8 kB / 284.4 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007828/0.01291, allocations: 1.514 MB / 285.9 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01291, allocations: 0 / 285.9 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001757/0.01308, allocations: 164.5 kB / 286.1 MB, free: 3.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.135e-05/0.01311, allocations: 23.89 kB / 286.1 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.01313, allocations: 7.984 kB / 286.1 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.373e-05/0.0132, allocations: 23.92 kB / 286.2 MB, free: 3.625 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.064e-05/0.01325, allocations: 27.95 kB / 286.2 MB, free: 3.598 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.01326, allocations: 0 / 286.2 MB, free: 3.598 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.762e-05/0.01331, allocations: 78.78 kB / 286.3 MB, free: 3.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01331, allocations: 0 / 286.3 MB, free: 3.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000231/0.01354, allocations: 83.83 kB / 286.3 MB, free: 3.438 MB / 266.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: 5 ($whenCondition1,opAmp.satPos,opAmp.satNeg,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 (11): * Single equations (assignments): 8 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000108/0.01365, allocations: 92.41 kB / 286.4 MB, free: 3.336 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003002/0.01395, allocations: 311.3 kB / 286.7 MB, free: 3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.01396, allocations: 4 kB / 286.7 MB, free: 2.996 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.01409, allocations: 183.3 kB / 286.9 MB, free: 2.801 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001539/0.01424, allocations: 49.08 kB / 287 MB, free: 2.754 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008327/0.01508, allocations: 477.3 kB / 287.4 MB, free: 2.262 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.41e-05/0.01512, allocations: 88.25 kB / 287.5 MB, free: 2.156 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.851e-05/0.01519, allocations: 30.27 kB / 287.5 MB, free: 2.125 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.01531, allocations: 111.3 kB / 287.7 MB, free: 2.016 MB / 266.7 MB Notification: Performance of SimCode: time 9.61e-07/0.01531, allocations: 4 kB / 287.7 MB, free: 2.012 MB / 266.7 MB Notification: Performance of Templates: time 0.1005/0.1158, allocations: 4.232 MB / 291.9 MB, free: 25.28 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7774672373197973]