Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008987/0.0008985, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.000983/0.0009831, allocations: 177 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.573/1.573, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002715, allocations: 11.94 kB / 301.4 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1214, allocations: 50.41 MB / 351.8 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.001834/0.1233, allocations: 1.225 MB / 353.1 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004548/0.1238, allocations: 143.5 kB / 353.2 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.493e-05/0.1239, allocations: 0 / 353.2 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.863e-05/0.124, allocations: 7.938 kB / 353.2 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001609/0.1241, allocations: 4 kB / 353.2 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000295/0.1244, allocations: 39.91 kB / 353.3 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.86e-05/0.1245, allocations: 27.92 kB / 353.3 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.1247, allocations: 11.98 kB / 353.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.944e-05/0.1247, allocations: 11.94 kB / 353.3 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.833e-05/0.1248, allocations: 11.86 kB / 353.3 MB, free: 2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.747e-05/0.1248, allocations: 4 kB / 353.3 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.252e-05/0.1249, allocations: 4 kB / 353.3 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.746e-05/0.1249, allocations: 15.92 kB / 353.3 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.737e-05/0.125, allocations: 41.58 kB / 353.4 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000106/0.1251, allocations: 35.81 kB / 353.4 MB, free: 1.895 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1251, allocations: 4 kB / 353.4 MB, free: 1.891 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1251, allocations: 0 / 353.4 MB, free: 1.891 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1252, allocations: 0 / 353.4 MB, free: 1.891 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004671/0.1256, allocations: 363.5 kB / 353.8 MB, free: 1.484 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.1257, allocations: 8.031 kB / 353.8 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.165e-05/0.1257, allocations: 12.84 kB / 353.8 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001892/0.1259, allocations: 196.1 kB / 354 MB, free: 1.234 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-06/0.1259, allocations: 4.375 kB / 354 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.349e-05/0.126, allocations: 4.375 kB / 354 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000265/0.1262, allocations: 113.6 kB / 354.1 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.1262, allocations: 192 / 354.1 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.1263, allocations: 7.938 kB / 354.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.1263, allocations: 7.938 kB / 354.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.97e-05/0.1264, allocations: 15.98 kB / 354.1 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003267/0.1267, allocations: 257.8 kB / 354.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.1269, allocations: 154.2 kB / 354.5 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.093e-05/0.127, allocations: 29.77 kB / 354.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.127, allocations: 4 kB / 354.6 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.1271, allocations: 38.56 kB / 354.6 MB, free: 500 kB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.183e-06/0.1271, allocations: 0 / 354.6 MB, free: 500 kB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.000251/0.1273, allocations: 81.52 kB / 354.7 MB, free: 412 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.1274, allocations: 85.11 kB / 354.8 MB, free: 308 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.1275, allocations: 142.1 kB / 354.9 MB, free: 152 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.1275, allocations: 29.7 kB / 354.9 MB, free: 116 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.92e-05/0.1276, allocations: 84.12 kB / 355 MB, free: 28 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.248e-05/0.1276, allocations: 7.906 kB / 355 MB, free: 20 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.325e-05/0.1277, allocations: 13.72 kB / 355 MB, free: 0 / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1278, allocations: 314.8 kB / 355.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.284e-05/0.1278, allocations: 11.98 kB / 355.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.369e-05/0.1279, allocations: 35.42 kB / 355.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001124/0.128, allocations: 59.3 kB / 355.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.128, allocations: 4 kB / 355.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001263/0.1282, allocations: 65.56 kB / 355.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.1282, allocations: 4 kB / 355.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1282, allocations: 4 kB / 355.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.1282, allocations: 0 / 355.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.25e-05/0.1283, allocations: 20.05 kB / 355.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1283, allocations: 0 / 355.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.516e-05/0.1283, allocations: 7.938 kB / 355.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.1284, allocations: 4 kB / 355.6 MB, free: 15.44 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001078/0.1285, allocations: 121.8 kB / 355.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.919e-05/0.1285, allocations: 45.61 kB / 355.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.619e-05/0.1286, allocations: 16.23 kB / 355.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1286, allocations: 0 / 355.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1286, allocations: 0 / 355.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1286, allocations: 4 kB / 355.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.1288, allocations: 173.6 kB / 355.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1288, allocations: 0 / 355.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.921e-05/0.1289, allocations: 11.94 kB / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1289, allocations: 0 / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.1289, allocations: 0 / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.1289, allocations: 4 kB / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1289, allocations: 0 / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001848/0.1291, allocations: 172.2 kB / 356.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.405e-05/0.1291, allocations: 93 kB / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.1292, allocations: 4 kB / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.869e-05/0.1292, allocations: 3.984 kB / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.961e-05/0.1293, allocations: 4.375 kB / 356.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.1293, allocations: 0 / 356.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.621e-05/0.1294, allocations: 110.6 kB / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1294, allocations: 0 / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002202/0.1296, allocations: 4 kB / 356.3 MB, free: 14.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001059/0.1297, allocations: 111.1 kB / 356.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.1298, allocations: 31.92 kB / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1299, allocations: 4.25 kB / 356.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.712e-05/0.1299, allocations: 11.94 kB / 356.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003658/0.1303, allocations: 37.75 kB / 356.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003096/0.1306, allocations: 165.5 kB / 356.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.1309, allocations: 0.6888 MB / 357.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.875e-05/0.1309, allocations: 3.984 kB / 357.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.51e-05/0.131, allocations: 11.44 kB / 357.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.131, allocations: 0 / 357.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Templates: time 0.002643/0.1336, allocations: 459.1 kB / 357.8 MB, free: 13.02 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches