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.001199/0.001199, allocations: 94.36 kB / 16.94 MB, free: 5.977 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.001337/0.001337, allocations: 184.8 kB / 17.83 MB, free: 5.641 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.867/1.867, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004912/0.0004913, allocations: 16 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1179, allocations: 47.58 MB / 328.3 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.003694/0.1217, allocations: 2.21 MB / 330.6 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1231, allocations: 0.691 MB / 331.2 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.1232, allocations: 7.938 kB / 331.2 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.924e-05/0.1233, allocations: 31.77 kB / 331.3 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.1236, allocations: 99.7 kB / 331.4 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002961/0.1239, allocations: 67.86 kB / 331.4 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003678/0.1243, allocations: 231.5 kB / 331.7 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.1245, allocations: 77.06 kB / 331.7 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.1247, allocations: 107.6 kB / 331.9 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001902/0.1249, allocations: 135.4 kB / 332 MB, free: 440 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.947e-05/0.125, allocations: 16 kB / 332 MB, free: 424 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.401e-05/0.125, allocations: 16 kB / 332 MB, free: 408 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.443e-05/0.1251, allocations: 43.81 kB / 332.1 MB, free: 364 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.645e-05/0.1252, allocations: 73.58 kB / 332.1 MB, free: 284 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.1254, allocations: 231.6 kB / 332.4 MB, free: 48 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1255, allocations: 3.938 kB / 332.4 MB, free: 44 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.1255, allocations: 0 / 332.4 MB, free: 44 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.1255, allocations: 0 / 332.4 MB, free: 44 kB / 270.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.001377/0.1269, allocations: 0.6145 MB / 333 MB, free: 15.37 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.1269, allocations: 8.031 kB / 333 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.615e-05/0.127, allocations: 31.62 kB / 333 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.1274, allocations: 278.3 kB / 333.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.1275, allocations: 16.44 kB / 333.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.832e-05/0.1275, allocations: 20 kB / 333.3 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/0.1281, allocations: 259.2 kB / 333.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1282, allocations: 0 / 333.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.1282, allocations: 8 kB / 333.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.1282, allocations: 4 kB / 333.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007493/0.129, allocations: 277.5 kB / 333.9 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.1307, allocations: 0.9012 MB / 334.8 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008336/0.1315, allocations: 266.6 kB / 335 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.1316, allocations: 11.89 kB / 335 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005299/0.1321, allocations: 189.9 kB / 335.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.483e-06/0.1321, allocations: 0 / 335.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.002444/0.1346, allocations: 0.7527 MB / 336 MB, free: 12.2 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.733e-05/0.1347, allocations: 106.8 kB / 336.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002935/0.135, allocations: 266.6 kB / 336.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.135, allocations: 33.7 kB / 336.4 MB, free: 11.76 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.1352, allocations: 164 kB / 336.5 MB, free: 11.6 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.083e-05/0.1353, allocations: 47.44 kB / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.239e-05/0.1353, allocations: 4 kB / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1354, allocations: 338.7 kB / 336.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003366/0.1358, allocations: 116.1 kB / 337 MB, free: 11.09 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003746/0.1362, allocations: 172 kB / 337.2 MB, free: 10.9 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.1365, allocations: 149.6 kB / 337.3 MB, free: 10.75 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1366, allocations: 0 / 337.3 MB, free: 10.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001279/0.1378, allocations: 474.4 kB / 337.8 MB, free: 10.27 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003645/0.1382, allocations: 0.6412 MB / 338.4 MB, free: 9.574 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.1382, allocations: 4.219 kB / 338.4 MB, free: 9.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004562/0.1387, allocations: 84.8 kB / 338.5 MB, free: 9.484 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.1389, allocations: 51.84 kB / 338.6 MB, free: 9.434 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.1418, allocations: 1.834 MB / 340.4 MB, free: 7.457 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003843/0.1422, allocations: 67.67 kB / 340.5 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.1422, allocations: 4 kB / 340.5 MB, free: 7.387 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.1423, allocations: 4 kB / 340.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007104/0.143, allocations: 298.2 kB / 340.8 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.143, allocations: 4 kB / 340.8 MB, free: 7.078 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.98e-05/0.1431, allocations: 29.03 kB / 340.8 MB, free: 7.047 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.1433, allocations: 47.91 kB / 340.9 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001166/0.1445, allocations: 1.436 MB / 342.3 MB, free: 5.43 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/0.1448, allocations: 43.81 kB / 342.3 MB, free: 5.387 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.1448, allocations: 12.06 kB / 342.3 MB, free: 5.375 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 ($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 (18): * Single equations (assignments): 16 * 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.0002429/0.1451, allocations: 216.7 kB / 342.6 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.45e-05/0.1451, allocations: 27.7 kB / 342.6 MB, free: 5.129 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.722e-05/0.1452, allocations: 21.83 kB / 342.6 MB, free: 5.113 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.1452, allocations: 3.953 kB / 342.6 MB, free: 5.109 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1452, allocations: 4 kB / 342.6 MB, free: 5.105 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.1452, allocations: 3.984 kB / 342.6 MB, free: 5.102 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003599/0.1456, allocations: 293.4 kB / 342.9 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.1456, allocations: 8 kB / 342.9 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001425/0.1457, allocations: 27.97 kB / 342.9 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002733/0.146, allocations: 84.8 kB / 343 MB, free: 4.645 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.146, allocations: 0 / 343 MB, free: 4.645 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002233/0.1483, allocations: 1.694 MB / 344.7 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1483, allocations: 4.031 kB / 344.7 MB, free: 2.812 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.1494, allocations: 393.5 kB / 345.1 MB, free: 2.406 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.1495, allocations: 100.8 kB / 345.2 MB, free: 2.289 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.1495, allocations: 8.375 kB / 345.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.1498, allocations: 43.89 kB / 345.3 MB, free: 2.238 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.032e-05/0.1499, allocations: 23.97 kB / 345.3 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.1499, allocations: 8 kB / 345.3 MB, free: 2.207 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001918/0.1501, allocations: 186 kB / 345.5 MB, free: 2.023 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1501, allocations: 7.938 kB / 345.5 MB, free: 2.016 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005818/0.1507, allocations: 123.7 kB / 345.6 MB, free: 1.895 MB / 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 (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.0002505/0.151, allocations: 103.2 kB / 345.7 MB, free: 1.785 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.1526, allocations: 0.7227 MB / 346.4 MB, free: 1.012 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1526, allocations: 0 / 346.4 MB, free: 1.012 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004712/0.1531, allocations: 246.9 kB / 346.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.1535, allocations: 40.5 kB / 346.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000975/0.1544, allocations: 0.529 MB / 347.2 MB, free: 172 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.1548, allocations: 0.7599 MB / 348 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001227/0.1549, allocations: 30.27 kB / 348 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.217e-05/0.155, allocations: 15.44 kB / 348 MB, free: 15.34 MB / 302.1 MB Notification: Performance of SimCode: time 9.11e-07/0.155, allocations: 0 / 348 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Templates: time 0.008055/0.163, allocations: 3.697 MB / 351.7 MB, free: 11.64 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile Environment - environmentSimulation: (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 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches