Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0009349/0.0009348, allocations: 108.4 kB / 18.36 MB, free: 4.641 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.001081/0.001081, allocations: 191 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.623/1.623, allocations: 205.1 MB / 225.2 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 47.92 kB / 282.1 MB, free: 2.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1101, allocations: 46.63 MB / 328.7 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004548/0.1146, allocations: 2.726 MB / 331.5 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.116, allocations: 0.706 MB / 332.2 MB, free: 320 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001903/0.1163, allocations: 11.88 kB / 332.2 MB, free: 308 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.1165, allocations: 39.58 kB / 332.2 MB, free: 268 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.1167, allocations: 87.25 kB / 332.3 MB, free: 180 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.117, allocations: 107.8 kB / 332.4 MB, free: 72 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004097/0.1174, allocations: 358.5 kB / 332.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.1176, allocations: 76.7 kB / 332.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001515/0.1178, allocations: 135.4 kB / 333 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002119/0.118, allocations: 155.3 kB / 333.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.827e-05/0.118, allocations: 28 kB / 333.2 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.524e-05/0.1181, allocations: 32 kB / 333.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.476e-05/0.1182, allocations: 59.77 kB / 333.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.1183, allocations: 147.3 kB / 333.4 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003598/0.1187, allocations: 322.8 kB / 333.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1187, allocations: 0 / 333.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1187, allocations: 0 / 333.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.084e-06/0.1187, allocations: 0 / 333.7 MB, free: 14.79 MB / 286.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.001201/0.1199, allocations: 0.6418 MB / 334.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.12, allocations: 8.031 kB / 334.4 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.992e-05/0.1201, allocations: 32.56 kB / 334.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.1204, allocations: 291.6 kB / 334.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.1205, allocations: 16.81 kB / 334.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.745e-05/0.1205, allocations: 20.38 kB / 334.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005564/0.1211, allocations: 247.5 kB / 334.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.1211, allocations: 0 / 334.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.183e-05/0.1211, allocations: 12 kB / 335 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.036e-06/0.1212, allocations: 4 kB / 335 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006803/0.1218, allocations: 241.6 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.1233, allocations: 0.8622 MB / 336.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007758/0.1241, allocations: 254.5 kB / 336.3 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002966/0.1244, allocations: 100.8 kB / 336.4 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.1245, allocations: 0 / 336.4 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004532/0.1249, allocations: 189.7 kB / 336.6 MB, free: 11.69 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.1249, allocations: 0 / 336.6 MB, free: 11.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.002264/0.1272, allocations: 0.6668 MB / 337.3 MB, free: 10.99 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.511e-05/0.1273, allocations: 110.8 kB / 337.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003119/0.1276, allocations: 266.6 kB / 337.6 MB, free: 10.59 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.1277, allocations: 29.7 kB / 337.7 MB, free: 10.55 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.1278, allocations: 172.1 kB / 337.8 MB, free: 10.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.123e-05/0.1278, allocations: 39.45 kB / 337.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.767e-05/0.1279, allocations: 49.58 kB / 337.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1281, allocations: 334.8 kB / 338.2 MB, free: 9.953 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003329/0.1284, allocations: 104.8 kB / 338.3 MB, free: 9.848 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003468/0.1288, allocations: 163.6 kB / 338.5 MB, free: 9.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006232/0.1294, allocations: 270.7 kB / 338.8 MB, free: 9.371 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1294, allocations: 0 / 338.8 MB, free: 9.371 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001152/0.1306, allocations: 443.5 kB / 339.2 MB, free: 8.922 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/0.1306, allocations: 33.7 kB / 339.2 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1307, allocations: 4 kB / 339.2 MB, free: 8.879 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003567/0.131, allocations: 76.83 kB / 339.3 MB, free: 8.801 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.1312, allocations: 39.91 kB / 339.3 MB, free: 8.762 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002578/0.1338, allocations: 1.958 MB / 341.3 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003486/0.1342, allocations: 51.77 kB / 341.4 MB, free: 6.605 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.1342, allocations: 11.98 kB / 341.4 MB, free: 6.594 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003492/0.1346, allocations: 176.3 kB / 341.5 MB, free: 6.418 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002676/0.1348, allocations: 143.7 kB / 341.7 MB, free: 6.25 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004575/0.1353, allocations: 231.4 kB / 341.9 MB, free: 5.996 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.226e-06/0.1353, allocations: 7.938 kB / 341.9 MB, free: 5.988 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0007044/0.136, allocations: 314.8 kB / 342.2 MB, free: 5.668 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.1361, allocations: 33.7 kB / 342.3 MB, free: 5.629 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1361, allocations: 8.172 kB / 342.3 MB, free: 5.621 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001074/0.1362, allocations: 28.84 kB / 342.3 MB, free: 5.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.1364, allocations: 35.97 kB / 342.3 MB, free: 5.555 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.1376, allocations: 1.615 MB / 343.9 MB, free: 3.805 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002956/0.1379, allocations: 39.84 kB / 344 MB, free: 3.766 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.1379, allocations: 16.06 kB / 344 MB, free: 3.75 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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.0001476/0.1381, allocations: 188.2 kB / 344.2 MB, free: 3.559 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.1381, allocations: 23.72 kB / 344.2 MB, free: 3.535 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.248e-05/0.1382, allocations: 25.83 kB / 344.2 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1382, allocations: 4 kB / 344.2 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1382, allocations: 0 / 344.2 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1382, allocations: 3.984 kB / 344.2 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002803/0.1385, allocations: 289.4 kB / 344.5 MB, free: 3.172 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1385, allocations: 4 kB / 344.5 MB, free: 3.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.1386, allocations: 31.91 kB / 344.6 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002515/0.1389, allocations: 72.8 kB / 344.6 MB, free: 3.062 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.1389, allocations: 7.938 kB / 344.6 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002257/0.1412, allocations: 1.762 MB / 346.4 MB, free: 1.152 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1412, allocations: 0 / 346.4 MB, free: 1.152 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009938/0.1422, allocations: 354 kB / 346.7 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.14e-05/0.1423, allocations: 100.8 kB / 346.8 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.1424, allocations: 4 kB / 346.8 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.1426, allocations: 35.95 kB / 346.9 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.592e-05/0.1427, allocations: 23.91 kB / 346.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.1427, allocations: 7.938 kB / 346.9 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001892/0.1429, allocations: 186 kB / 347.1 MB, free: 428 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1429, allocations: 4 kB / 347.1 MB, free: 424 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005733/0.1435, allocations: 127.7 kB / 347.2 MB, free: 296 kB / 286.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.0001777/0.1437, allocations: 103.3 kB / 347.3 MB, free: 184 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.1451, allocations: 0.6922 MB / 348 MB, free: 15.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.1451, allocations: 0.6875 kB / 348 MB, free: 15.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004782/0.1456, allocations: 238.5 kB / 348.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.146, allocations: 44.72 kB / 348.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.1471, allocations: 447.4 kB / 348.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/0.1474, allocations: 0.7482 MB / 349.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.1475, allocations: 22.3 kB / 349.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.723e-05/0.1476, allocations: 23.44 kB / 349.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1476, allocations: 0 / 349.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of Templates: time 0.008385/0.156, allocations: 4.196 MB / 353.7 MB, free: 9.672 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches