Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001182/0.001182, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001195/0.001195, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 246.9 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 64.09 kB / 306.9 MB, free: 1.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09784, allocations: 50.53 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004318/0.1022, allocations: 2.824 MB / 360.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.1037, allocations: 0.7129 MB / 361 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002344/0.104, allocations: 4 kB / 361 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.1042, allocations: 23.77 kB / 361 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002345/0.1045, allocations: 83.38 kB / 361.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002783/0.1047, allocations: 79.92 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003839/0.1051, allocations: 338.6 kB / 361.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.1053, allocations: 73.12 kB / 361.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/0.1055, allocations: 123.4 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001903/0.1057, allocations: 143.3 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.234e-05/0.1058, allocations: 16 kB / 361.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.274e-05/0.1059, allocations: 20 kB / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.684e-05/0.1059, allocations: 51.75 kB / 361.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.1061, allocations: 139.3 kB / 362.1 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002347/0.1063, allocations: 235.7 kB / 362.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1063, allocations: 0 / 362.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1063, allocations: 0 / 362.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1063, allocations: 0 / 362.3 MB, free: 9.637 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.001248/0.1076, allocations: 0.6457 MB / 362.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1076, allocations: 12.03 kB / 362.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.272e-05/0.1077, allocations: 32.56 kB / 363 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003293/0.1081, allocations: 271.6 kB / 363.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.1081, allocations: 16.81 kB / 363.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.518e-05/0.1082, allocations: 20.38 kB / 363.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006575/0.1088, allocations: 282.1 kB / 363.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.1088, allocations: 0 / 363.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/0.1089, allocations: 8 kB / 363.6 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.1089, allocations: 8 kB / 363.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007251/0.1096, allocations: 245.5 kB / 363.8 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.1113, allocations: 0.9442 MB / 364.8 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007887/0.1121, allocations: 254.5 kB / 365 MB, free: 6.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003065/0.1124, allocations: 100.8 kB / 365.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.1124, allocations: 0 / 365.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005021/0.1129, allocations: 181.3 kB / 365.3 MB, free: 6.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.323e-06/0.1129, allocations: 0 / 365.3 MB, free: 6.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002263/0.1152, allocations: 0.659 MB / 365.9 MB, free: 5.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.567e-05/0.1153, allocations: 106.8 kB / 366 MB, free: 5.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.1156, allocations: 266.5 kB / 366.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.1157, allocations: 37.64 kB / 366.3 MB, free: 5.305 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.1158, allocations: 168 kB / 366.5 MB, free: 5.137 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.293e-05/0.1159, allocations: 51.28 kB / 366.5 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.59e-05/0.116, allocations: 49.7 kB / 366.6 MB, free: 5.031 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1161, allocations: 330.8 kB / 366.9 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003499/0.1165, allocations: 99.77 kB / 367 MB, free: 4.602 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003795/0.1169, allocations: 168 kB / 367.2 MB, free: 4.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000665/0.1175, allocations: 268.3 kB / 367.4 MB, free: 4.117 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1176, allocations: 4 kB / 367.4 MB, free: 4.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001213/0.1188, allocations: 434.6 kB / 367.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.508e-05/0.1188, allocations: 29.7 kB / 367.9 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1188, allocations: 4 kB / 367.9 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003606/0.1192, allocations: 76.86 kB / 368 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001979/0.1194, allocations: 43.91 kB / 368 MB, free: 3.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002465/0.1219, allocations: 1.764 MB / 369.8 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.1222, allocations: 47.8 kB / 369.8 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.1223, allocations: 8 kB / 369.8 MB, free: 1.551 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 (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 (19): * Single equations (assignments): 17 * 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.0001543/0.1224, allocations: 145.8 kB / 370 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.982e-05/0.1225, allocations: 23.72 kB / 370 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.409e-05/0.1225, allocations: 21.83 kB / 370 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1225, allocations: 4.219 kB / 370 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.1225, allocations: 3.938 kB / 370 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1225, allocations: 7.969 kB / 370 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002902/0.1228, allocations: 293.4 kB / 370.3 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1229, allocations: 3.984 kB / 370.3 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.123, allocations: 19.98 kB / 370.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002874/0.1233, allocations: 76.8 kB / 370.4 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.1233, allocations: 0 / 370.4 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1747/0.2981, allocations: 1.635 MB / 372.1 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2981, allocations: 1.25 kB / 372.1 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.2993, allocations: 363 kB / 372.4 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.675e-05/0.2994, allocations: 98.61 kB / 372.5 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.54e-05/0.2994, allocations: 7.938 kB / 372.5 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002596/0.2997, allocations: 33.41 kB / 372.6 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.2998, allocations: 19.27 kB / 372.6 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.2998, allocations: 11.05 kB / 372.6 MB, free: 19.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002052/0.3001, allocations: 191.1 kB / 372.8 MB, free: 19.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3001, allocations: 1 kB / 372.8 MB, free: 19.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004246/0.3005, allocations: 68.3 kB / 372.8 MB, free: 19.8 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 (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.0001428/0.3006, allocations: 106.9 kB / 372.9 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.3018, allocations: 404.5 kB / 373.3 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3018, allocations: 1.812 kB / 373.3 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004695/0.3022, allocations: 228.5 kB / 373.6 MB, free: 19.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.3026, allocations: 43.97 kB / 373.6 MB, free: 19.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.3037, allocations: 0.5545 MB / 374.2 MB, free: 19.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.3039, allocations: 0.7478 MB / 374.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.496e-05/0.304, allocations: 18.28 kB / 374.9 MB, free: 18.37 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.304, allocations: 0 / 374.9 MB, free: 18.37 MB / 302.1 MB Notification: Performance of Templates: time 0.008742/0.3128, allocations: 4.149 MB / 379.1 MB, free: 18.12 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches