Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001011/0.00101, allocations: 176.2 kB / 16.45 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.359/1.359, allocations: 205.4 MB / 222.6 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007327/0.0007327, allocations: 90.3 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06738/0.06738, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006433/0.0006433, allocations: 16 kB / 392.7 MB, free: 66.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09786, allocations: 50.38 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.001753/0.09966, allocations: 1.563 MB / 444.6 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.1008, allocations: 1.011 MB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.827e-05/0.1009, allocations: 0 / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002369/0.1012, allocations: 55.8 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.1014, allocations: 75.72 kB / 445.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004799/0.1019, allocations: 203.5 kB / 445.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.102, allocations: 151.5 kB / 446.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.649e-05/0.1021, allocations: 25.55 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.312e-05/0.1022, allocations: 63.69 kB / 446.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.518e-05/0.1023, allocations: 67.69 kB / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.1023, allocations: 0 / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.923e-05/0.1024, allocations: 55.97 kB / 446.3 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.111e-05/0.1025, allocations: 47.83 kB / 446.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.651e-05/0.1025, allocations: 53.58 kB / 446.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.1027, allocations: 175.9 kB / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1027, allocations: 0 / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1027, allocations: 3.938 kB / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1027, allocations: 0 / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005119/0.1032, allocations: 0.4999 MB / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/0.1032, allocations: 12.03 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.551e-05/0.1033, allocations: 27.7 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.1035, allocations: 274.4 kB / 447.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.1036, allocations: 12 kB / 447.4 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.1036, allocations: 7.938 kB / 447.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002714/0.1039, allocations: 176.4 kB / 447.6 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.1039, allocations: 0 / 447.6 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.1039, allocations: 7.984 kB / 447.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1039, allocations: 0 / 447.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.948e-05/0.104, allocations: 43.91 kB / 447.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004015/0.1044, allocations: 474.5 kB / 448.1 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.1046, allocations: 142.5 kB / 448.2 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.784e-05/0.1047, allocations: 55.42 kB / 448.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.1048, allocations: 4 kB / 448.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001652/0.1049, allocations: 101 kB / 448.4 MB, free: 10.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.1049, allocations: 0 / 448.4 MB, free: 10.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003468/0.1053, allocations: 173.2 kB / 448.5 MB, free: 9.988 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.1054, allocations: 187.9 kB / 448.7 MB, free: 9.762 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002313/0.1056, allocations: 327.1 kB / 449 MB, free: 9.434 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.1056, allocations: 33.7 kB / 449.1 MB, free: 9.395 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.422e-05/0.1057, allocations: 124.4 kB / 449.2 MB, free: 9.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.1057, allocations: 23.73 kB / 449.2 MB, free: 9.246 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-06/0.1057, allocations: 4 kB / 449.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.758e-05/0.1058, allocations: 334.8 kB / 449.6 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.389e-05/0.1058, allocations: 31.86 kB / 449.6 MB, free: 8.875 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.199e-05/0.1059, allocations: 91.72 kB / 449.7 MB, free: 8.758 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.287e-05/0.106, allocations: 31.98 kB / 449.7 MB, free: 8.727 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.106, allocations: 0 / 449.7 MB, free: 8.727 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000195/0.1062, allocations: 141.2 kB / 449.8 MB, free: 8.582 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.1062, allocations: 8 kB / 449.9 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.1063, allocations: 0 / 449.9 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1063, allocations: 4 kB / 449.9 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.1064, allocations: 23.92 kB / 449.9 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1064, allocations: 7.953 kB / 449.9 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.484e-05/0.1065, allocations: 11.91 kB / 449.9 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.1065, allocations: 4 kB / 449.9 MB, free: 8.523 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.1066, allocations: 165.7 kB / 450.1 MB, free: 8.352 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.314e-05/0.1067, allocations: 61.52 kB / 450.1 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.32e-05/0.1067, allocations: 26.02 kB / 450.2 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1067, allocations: 4 kB / 450.2 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.1067, allocations: 0 / 450.2 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.1067, allocations: 15.94 kB / 450.2 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.1069, allocations: 249.5 kB / 450.4 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1069, allocations: 0 / 450.4 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.544e-05/0.107, allocations: 23.98 kB / 450.4 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.107, allocations: 4 kB / 450.4 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.107, allocations: 0 / 450.4 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.107, allocations: 7.984 kB / 450.5 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.107, allocations: 0 / 450.5 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002065/0.1072, allocations: 187.2 kB / 450.6 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.043e-05/0.1073, allocations: 116.8 kB / 450.7 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.96e-05/0.1073, allocations: 11.98 kB / 450.8 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.731e-05/0.1074, allocations: 4 kB / 450.8 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.306e-05/0.1075, allocations: 7.984 kB / 450.8 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.1075, allocations: 8 kB / 450.8 MB, free: 7.539 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001615/0.1076, allocations: 245.9 kB / 451 MB, free: 7.297 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1076, allocations: 0 / 451 MB, free: 7.297 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002292/0.1079, allocations: 40 kB / 451.1 MB, free: 7.258 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007149/0.1086, allocations: 429.2 kB / 451.5 MB, free: 6.828 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001899/0.1088, allocations: 79.84 kB / 451.6 MB, free: 6.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1088, allocations: 0 / 451.6 MB, free: 6.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.904e-05/0.1089, allocations: 31.98 kB / 451.6 MB, free: 6.719 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003757/0.1093, allocations: 84.86 kB / 451.7 MB, free: 6.637 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004829/0.1098, allocations: 442.9 kB / 452.1 MB, free: 6.168 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001441/0.1099, allocations: 0.7401 MB / 452.8 MB, free: 5.402 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.291e-05/0.11, allocations: 23.42 kB / 452.9 MB, free: 5.383 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.11, allocations: 0 / 452.9 MB, free: 5.383 MB / 298.7 MB Notification: Performance of Templates: time 0.003932/0.1139, allocations: 2.949 MB / 455.8 MB, free: 2.426 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches