Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.00101/0.00101, allocations: 180.6 kB / 16.45 MB, free: 5.656 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.567/1.567, 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.0007489/0.0007489, allocations: 94.3 kB / 270.9 MB, free: 8.344 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.07717/0.07717, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004523/0.0004524, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08255/0.08302, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.001828/0.0849, allocations: 1.567 MB / 443.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.08614, allocations: 1.003 MB / 444.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.983e-05/0.08625, allocations: 7.938 kB / 444.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00027/0.08653, allocations: 55.8 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001772/0.08672, allocations: 83.7 kB / 445.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005091/0.08724, allocations: 199.6 kB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001534/0.0874, allocations: 147.5 kB / 445.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.08751, allocations: 29.55 kB / 445.5 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.967e-05/0.08759, allocations: 71.62 kB / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.224e-05/0.08768, allocations: 63.69 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.08771, allocations: 4 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.08782, allocations: 43.98 kB / 445.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.803e-05/0.08789, allocations: 51.81 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.951e-05/0.08794, allocations: 53.58 kB / 445.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.08811, allocations: 167.9 kB / 445.9 MB, free: 12.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.08812, allocations: 0 / 445.9 MB, free: 12.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.08813, allocations: 4 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.08814, allocations: 7.938 kB / 445.9 MB, free: 12.89 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.0005253/0.08867, allocations: 0.4999 MB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.08871, allocations: 12.03 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/0.08876, allocations: 23.72 kB / 446.4 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002541/0.08902, allocations: 278.4 kB / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.08905, allocations: 8 kB / 446.7 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.08907, allocations: 4 kB / 446.7 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003054/0.08938, allocations: 181.7 kB / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.0894, allocations: 4 kB / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.08942, allocations: 4 kB / 446.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.08943, allocations: 0 / 446.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001077/0.08955, allocations: 43.92 kB / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004234/0.08998, allocations: 470.5 kB / 447.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.0902, allocations: 146.5 kB / 447.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.092e-05/0.0903, allocations: 59.41 kB / 447.6 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.09033, allocations: 7.938 kB / 447.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.09051, allocations: 97.02 kB / 447.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.09052, allocations: 0 / 447.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003296/0.09086, allocations: 173.5 kB / 447.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.09091, allocations: 191.9 kB / 448.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002401/0.09116, allocations: 326.7 kB / 448.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.09118, allocations: 29.7 kB / 448.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.331e-05/0.09124, allocations: 124.4 kB / 448.5 MB, free: 9.926 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.09127, allocations: 23.73 kB / 448.6 MB, free: 9.902 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-06/0.09128, allocations: 0 / 448.6 MB, free: 9.902 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.102e-05/0.09133, allocations: 338.9 kB / 448.9 MB, free: 9.562 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.555e-05/0.09141, allocations: 23.98 kB / 448.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.525e-05/0.0915, allocations: 99.58 kB / 449 MB, free: 9.414 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.515e-05/0.09158, allocations: 35.98 kB / 449.1 MB, free: 9.379 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.09159, allocations: 0 / 449.1 MB, free: 9.379 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001971/0.09179, allocations: 137.3 kB / 449.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.09181, allocations: 4 kB / 449.2 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.09182, allocations: 48 / 449.2 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.09184, allocations: 12.12 kB / 449.2 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.09195, allocations: 23.94 kB / 449.2 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.09197, allocations: 7.953 kB / 449.2 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.694e-05/0.09205, allocations: 15.89 kB / 449.3 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.09207, allocations: 4 kB / 449.3 MB, free: 9.172 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 9.753e-05/0.09217, allocations: 153.6 kB / 449.4 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.683e-05/0.09224, allocations: 69.44 kB / 449.5 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.523e-05/0.09229, allocations: 29.7 kB / 449.5 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.0923, allocations: 4.062 kB / 449.5 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.09231, allocations: 4 kB / 449.5 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.09232, allocations: 3.953 kB / 449.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.09247, allocations: 249.8 kB / 449.8 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.09248, allocations: 4 kB / 449.8 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.658e-05/0.09255, allocations: 19.98 kB / 449.8 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.09257, allocations: 7.938 kB / 449.8 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.09258, allocations: 4 kB / 449.8 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.09259, allocations: 0 / 449.8 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.09259, allocations: 0 / 449.8 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002169/0.09282, allocations: 183.3 kB / 450 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.168e-05/0.0929, allocations: 120.8 kB / 450.1 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.87e-05/0.09293, allocations: 0 / 450.1 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.961e-05/0.09301, allocations: 11.98 kB / 450.1 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.819e-05/0.09306, allocations: 15.92 kB / 450.1 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.09309, allocations: 15.94 kB / 450.1 MB, free: 8.184 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001624/0.09326, allocations: 233.9 kB / 450.4 MB, free: 7.953 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09326, allocations: 0 / 450.4 MB, free: 7.953 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002764/0.09354, allocations: 39.98 kB / 450.4 MB, free: 7.914 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.0007334/0.09429, allocations: 426.1 kB / 450.8 MB, free: 7.488 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002014/0.0945, allocations: 83.89 kB / 450.9 MB, free: 7.406 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.09451, allocations: 4 kB / 450.9 MB, free: 7.402 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.186e-05/0.09459, allocations: 31.92 kB / 450.9 MB, free: 7.371 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.09497, allocations: 68.48 kB / 451 MB, free: 7.305 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004985/0.09548, allocations: 447.4 kB / 451.4 MB, free: 6.832 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.09563, allocations: 0.744 MB / 452.2 MB, free: 6.062 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.498e-05/0.09568, allocations: 23.42 kB / 452.2 MB, free: 6.043 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.09569, allocations: 0 / 452.2 MB, free: 6.043 MB / 298.7 MB Notification: Performance of Templates: time 0.003841/0.09953, allocations: 2.953 MB / 455.2 MB, free: 3.082 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches