Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 109.4 kB / 16.51 MB, free: 6.707 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.001027/0.001027, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.419/1.419, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001226, allocations: 46.55 kB / 300 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1017, allocations: 49.45 MB / 349.4 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002603/0.1043, allocations: 1.553 MB / 351 MB, free: 3.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003048/0.1046, allocations: 131.6 kB / 351.1 MB, free: 3.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.274e-05/0.1047, allocations: 4 kB / 351.1 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.487e-05/0.1048, allocations: 7.922 kB / 351.1 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.1049, allocations: 4 kB / 351.1 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.1051, allocations: 39.03 kB / 351.1 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.088e-05/0.1052, allocations: 27.86 kB / 351.2 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.745e-05/0.1053, allocations: 12 kB / 351.2 MB, free: 3.066 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.761e-05/0.1053, allocations: 8 kB / 351.2 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.046e-05/0.1054, allocations: 15.86 kB / 351.2 MB, free: 3.043 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.1054, allocations: 0 / 351.2 MB, free: 3.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.039e-05/0.1054, allocations: 0 / 351.2 MB, free: 3.043 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.68e-05/0.1054, allocations: 11.98 kB / 351.2 MB, free: 3.031 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.751e-05/0.1055, allocations: 23.8 kB / 351.2 MB, free: 3.008 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.486e-05/0.1056, allocations: 31.84 kB / 351.3 MB, free: 2.977 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1056, allocations: 4 kB / 351.3 MB, free: 2.973 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1056, allocations: 0 / 351.3 MB, free: 2.973 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.1056, allocations: 4 kB / 351.3 MB, free: 2.969 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004091/0.106, allocations: 363.5 kB / 351.6 MB, free: 2.562 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.106, allocations: 16.02 kB / 351.6 MB, free: 2.547 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.806e-05/0.1061, allocations: 8.781 kB / 351.7 MB, free: 2.539 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.1062, allocations: 188.2 kB / 351.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.1063, allocations: 4.375 kB / 351.8 MB, free: 2.312 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.315e-06/0.1063, allocations: 384 / 351.8 MB, free: 2.312 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000208/0.1065, allocations: 93.61 kB / 351.9 MB, free: 2.203 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.1065, allocations: 192 / 351.9 MB, free: 2.203 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.1065, allocations: 11.94 kB / 351.9 MB, free: 2.191 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1065, allocations: 0 / 351.9 MB, free: 2.191 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.695e-05/0.1066, allocations: 15.92 kB / 352 MB, free: 2.176 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002689/0.1069, allocations: 261.8 kB / 352.2 MB, free: 1.867 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.111e-05/0.107, allocations: 49.12 kB / 352.3 MB, free: 1.801 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.912e-05/0.107, allocations: 21.72 kB / 352.3 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.45e-05/0.1071, allocations: 0 / 352.3 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.1071, allocations: 38.55 kB / 352.3 MB, free: 1.727 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.1071, allocations: 0 / 352.3 MB, free: 1.727 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.000208/0.1073, allocations: 61.53 kB / 352.4 MB, free: 1.66 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.1074, allocations: 81.11 kB / 352.5 MB, free: 1.562 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.1075, allocations: 134.1 kB / 352.6 MB, free: 1.418 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.1075, allocations: 25.95 kB / 352.6 MB, free: 1.387 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.276e-05/0.1076, allocations: 92.14 kB / 352.7 MB, free: 1.293 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.769e-06/0.1076, allocations: 3.906 kB / 352.7 MB, free: 1.289 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.941e-05/0.1076, allocations: 17.72 kB / 352.7 MB, free: 1.266 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.512e-05/0.1077, allocations: 314.8 kB / 353 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.872e-05/0.1078, allocations: 8 kB / 353 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.458e-05/0.1078, allocations: 17.72 kB / 353.1 MB, free: 0.918 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.1079, allocations: 33.7 kB / 353.1 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1079, allocations: 0 / 353.1 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000114/0.1081, allocations: 57.55 kB / 353.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.1081, allocations: 4 kB / 353.2 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1081, allocations: 0 / 353.2 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.1081, allocations: 4 kB / 353.2 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.644e-05/0.1082, allocations: 8.062 kB / 353.2 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.1082, allocations: 0 / 353.2 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.476e-05/0.1082, allocations: 0 / 353.2 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.1082, allocations: 4 kB / 353.2 MB, free: 0.7969 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.532e-05/0.1083, allocations: 121.8 kB / 353.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.188e-05/0.1084, allocations: 37.61 kB / 353.3 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.666e-05/0.1084, allocations: 11.86 kB / 353.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1084, allocations: 0 / 353.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1084, allocations: 4 kB / 353.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.1084, allocations: 4.031 kB / 353.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.1086, allocations: 165.6 kB / 353.5 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1086, allocations: 7.875 kB / 353.5 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.782e-05/0.1086, allocations: 11.92 kB / 353.5 MB, free: 380 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1086, allocations: 0 / 353.5 MB, free: 380 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.1086, allocations: 4 kB / 353.5 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1087, allocations: 0 / 353.5 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1087, allocations: 0 / 353.5 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001362/0.1088, allocations: 156.2 kB / 353.7 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.666e-05/0.1089, allocations: 93 kB / 353.8 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.1089, allocations: 4 kB / 353.8 MB, free: 84 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.929e-05/0.1089, allocations: 7.984 kB / 353.8 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.158e-05/0.109, allocations: 0 / 353.8 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.109, allocations: 4 kB / 353.8 MB, free: 72 kB / 286.1 MB Notification: Performance of sorting global known variables: time 6.911e-05/0.109, allocations: 103.2 kB / 353.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.372e-06/0.1091, allocations: 4.031 kB / 353.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002154/0.1093, allocations: 7.938 kB / 353.9 MB, free: 15.96 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: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 8.549e-05/0.1094, allocations: 103.2 kB / 354 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001117/0.1095, allocations: 23.98 kB / 354 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1095, allocations: 0 / 354 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.011e-05/0.1095, allocations: 4 kB / 354 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.1099, allocations: 28.08 kB / 354.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003116/0.1102, allocations: 151 kB / 354.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002065/0.1104, allocations: 0.6887 MB / 354.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.993e-05/0.1104, allocations: 0 / 354.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.096e-05/0.1105, allocations: 15.53 kB / 354.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1105, allocations: 0 / 354.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of Templates: time 0.002255/0.1127, allocations: 400.4 kB / 355.3 MB, free: 14.5 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches