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) 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.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001394/0.001394, allocations: 116.2 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001712/0.001712, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 67.09 kB / 306.5 MB, free: 0.9219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1224, allocations: 50.54 MB / 357 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004251/0.1267, allocations: 2.816 MB / 359.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.1279, allocations: 0.6974 MB / 360.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.128, allocations: 7.938 kB / 360.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.1282, allocations: 39.7 kB / 360.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.1284, allocations: 79.38 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000262/0.1287, allocations: 75.92 kB / 360.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003757/0.129, allocations: 358.5 kB / 361.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002095/0.1293, allocations: 88.69 kB / 361.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.1294, allocations: 139.4 kB / 361.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.1296, allocations: 143.4 kB / 361.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.966e-05/0.1297, allocations: 28 kB / 361.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.66e-05/0.1297, allocations: 28 kB / 361.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.112e-05/0.1298, allocations: 67.75 kB / 361.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.1299, allocations: 151.2 kB / 361.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.1302, allocations: 319.1 kB / 362 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1303, allocations: 0 / 362 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1303, allocations: 0 / 362 MB, free: 9.363 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.1303, allocations: 0 / 362 MB, free: 9.363 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.00122/0.1315, allocations: 0.6379 MB / 362.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.1316, allocations: 16.03 kB / 362.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.719e-05/0.1316, allocations: 28.56 kB / 362.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.132, allocations: 287.6 kB / 363 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.132, allocations: 16.81 kB / 363 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.1321, allocations: 20.38 kB / 363 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006422/0.1327, allocations: 282.1 kB / 363.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1327, allocations: 0 / 363.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.1328, allocations: 4 kB / 363.3 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.1328, allocations: 8 kB / 363.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007366/0.1335, allocations: 249.5 kB / 363.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.135, allocations: 0.9364 MB / 364.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008039/0.1359, allocations: 238.6 kB / 364.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003296/0.1362, allocations: 104.8 kB / 364.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.1362, allocations: 4.156 kB / 364.8 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005115/0.1368, allocations: 181.7 kB / 365 MB, free: 6.164 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.543e-06/0.1368, allocations: 0 / 365 MB, free: 6.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002295/0.1391, allocations: 0.6551 MB / 365.6 MB, free: 5.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.1392, allocations: 110.8 kB / 365.7 MB, free: 5.348 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000268/0.1394, allocations: 274.5 kB / 366 MB, free: 5.074 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.1395, allocations: 29.7 kB / 366 MB, free: 5.039 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.1396, allocations: 175.9 kB / 366.2 MB, free: 4.863 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.761e-05/0.1396, allocations: 43.39 kB / 366.3 MB, free: 4.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.382e-05/0.1397, allocations: 53.61 kB / 366.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1399, allocations: 334.8 kB / 366.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003528/0.1402, allocations: 103.9 kB / 366.7 MB, free: 4.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/0.1406, allocations: 183.2 kB / 366.9 MB, free: 4.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006869/0.1413, allocations: 286 kB / 367.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1413, allocations: 0 / 367.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001169/0.1425, allocations: 446.3 kB / 367.6 MB, free: 3.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.178e-05/0.1426, allocations: 37.7 kB / 367.7 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1426, allocations: 0 / 367.7 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003747/0.143, allocations: 76.86 kB / 367.7 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.1432, allocations: 47.91 kB / 367.8 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002789/0.146, allocations: 2.013 MB / 369.8 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003343/0.1463, allocations: 47.8 kB / 369.8 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.1464, allocations: 8 kB / 369.9 MB, free: 0.957 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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.0001787/0.1465, allocations: 146.4 kB / 370 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.951e-05/0.1466, allocations: 23.72 kB / 370 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.146e-05/0.1466, allocations: 29.77 kB / 370.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1467, allocations: 0 / 370.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.1467, allocations: 0 / 370.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1467, allocations: 0 / 370.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003007/0.147, allocations: 305.3 kB / 370.3 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.147, allocations: 0 / 370.3 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.1471, allocations: 19.98 kB / 370.4 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002607/0.1474, allocations: 76.8 kB / 370.4 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.094e-05/0.1474, allocations: 7.922 kB / 370.5 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2118/0.3592, allocations: 1.915 MB / 372.4 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.3593, allocations: 5.484 kB / 372.4 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.3604, allocations: 359.9 kB / 372.7 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.864e-05/0.3605, allocations: 103.9 kB / 372.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.317e-05/0.3606, allocations: 3.688 kB / 372.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.3609, allocations: 32.92 kB / 372.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.361, allocations: 20.94 kB / 372.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.361, allocations: 11.52 kB / 372.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002894/0.3613, allocations: 196.6 kB / 373.1 MB, free: 18.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3613, allocations: 0 / 373.1 MB, free: 18.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005206/0.3619, allocations: 71.67 kB / 373.2 MB, free: 18.79 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.0001859/0.362, allocations: 106.4 kB / 373.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.3637, allocations: 484.3 kB / 373.7 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3637, allocations: 0 / 373.7 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005249/0.3642, allocations: 233.5 kB / 374 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003685/0.3646, allocations: 43.95 kB / 374 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/0.3678, allocations: 0.9856 MB / 375 MB, free: 18.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.368, allocations: 0.7436 MB / 375.7 MB, free: 17.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.3681, allocations: 22.83 kB / 375.8 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.888e-05/0.3682, allocations: 20.47 kB / 375.8 MB, free: 17.42 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3682, allocations: 7.641 kB / 375.8 MB, free: 17.42 MB / 302.1 MB Notification: Performance of Templates: time 0.008981/0.3772, allocations: 3.68 MB / 379.5 MB, free: 17.24 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches