Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.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.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001756/0.001756, allocations: 177.5 kB / 16.77 MB, free: 4.926 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.674/1.674, allocations: 205.4 MB / 222.9 MB, free: 8.918 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.0007631/0.0007631, allocations: 90.41 kB / 271.3 MB, free: 8.223 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.08668/0.08668, allocations: 12.61 MB / 332.2 MB, free: 11.22 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004587/0.0004588, allocations: 12 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09651/0.09699, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1): time 0.001754/0.0988, allocations: 1.428 MB / 444.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008698/0.0997, allocations: 0.5428 MB / 444.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.09983, allocations: 7.875 kB / 444.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.334e-05/0.09988, allocations: 3.938 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.1001, allocations: 15.91 kB / 445 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.1004, allocations: 67.88 kB / 445 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001189/0.1006, allocations: 87.69 kB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.1007, allocations: 25.11 kB / 445.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.414e-05/0.1008, allocations: 31.86 kB / 445.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.877e-05/0.1009, allocations: 43.77 kB / 445.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.1009, allocations: 4 kB / 445.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.611e-05/0.1009, allocations: 4 kB / 445.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.527e-05/0.101, allocations: 19.92 kB / 445.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.48e-05/0.101, allocations: 77.41 kB / 445.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.621e-05/0.1011, allocations: 63.86 kB / 445.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1011, allocations: 0 / 445.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1011, allocations: 0 / 445.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1011, allocations: 0 / 445.4 MB, free: 13.68 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.000467/0.1016, allocations: 411.2 kB / 445.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.1017, allocations: 8.031 kB / 445.8 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.139e-05/0.1017, allocations: 16.75 kB / 445.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.1019, allocations: 208.1 kB / 446 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.1019, allocations: 8.375 kB / 446 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.316e-05/0.102, allocations: 16.31 kB / 446 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004574/0.1024, allocations: 278.4 kB / 446.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1025, allocations: 3.938 kB / 446.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.1025, allocations: 4 kB / 446.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.1025, allocations: 8 kB / 446.3 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.1026, allocations: 47.97 kB / 446.4 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003127/0.1029, allocations: 306.4 kB / 446.7 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001911/0.1031, allocations: 139.9 kB / 446.8 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.1033, allocations: 74.61 kB / 446.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.471e-05/0.1033, allocations: 8.141 kB / 446.9 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.239e-05/0.1033, allocations: 42.5 kB / 446.9 MB, free: 11.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.392e-06/0.1033, allocations: 0 / 446.9 MB, free: 11.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003612/0.1037, allocations: 173.6 kB / 447.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.1038, allocations: 126.9 kB / 447.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.1039, allocations: 150.2 kB / 447.4 MB, free: 11.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.1039, allocations: 37.64 kB / 447.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.382e-05/0.1039, allocations: 96 kB / 447.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.104, allocations: 15.89 kB / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-06/0.104, allocations: 4 kB / 447.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.594e-05/0.104, allocations: 322.8 kB / 447.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.905e-05/0.1041, allocations: 27.92 kB / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.068e-05/0.1042, allocations: 142.5 kB / 448 MB, free: 10.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.1044, allocations: 170.4 kB / 448.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1044, allocations: 4 kB / 448.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002241/0.1046, allocations: 185.1 kB / 448.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.1046, allocations: 8 kB / 448.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.1046, allocations: 11.97 kB / 448.4 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.1047, allocations: 4 kB / 448.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.1048, allocations: 31.92 kB / 448.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.1048, allocations: 4.531 kB / 448.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.456e-05/0.1049, allocations: 23.88 kB / 448.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.1049, allocations: 8 kB / 448.4 MB, free: 10.24 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.153e-05/0.105, allocations: 145.5 kB / 448.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.1052, allocations: 121.3 kB / 448.7 MB, free: 9.961 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.712e-05/0.1052, allocations: 20.72 kB / 448.7 MB, free: 9.938 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1052, allocations: 4 kB / 448.7 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1052, allocations: 0 / 448.7 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1052, allocations: 7.922 kB / 448.7 MB, free: 9.926 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.1054, allocations: 197.5 kB / 448.9 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1054, allocations: 0 / 448.9 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.822e-05/0.1055, allocations: 31.98 kB / 448.9 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.1055, allocations: 0 / 448.9 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.1055, allocations: 480 / 448.9 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1055, allocations: 7.984 kB / 449 MB, free: 9.645 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1055, allocations: 0 / 449 MB, free: 9.645 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.1058, allocations: 266.5 kB / 449.2 MB, free: 9.363 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.861e-05/0.1058, allocations: 101 kB / 449.3 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.1059, allocations: 4 kB / 449.3 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.595e-05/0.1059, allocations: 4 kB / 449.3 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.169e-05/0.106, allocations: 8 kB / 449.3 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.106, allocations: 7.938 kB / 449.3 MB, free: 9.223 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.455e-05/0.1061, allocations: 123.9 kB / 449.5 MB, free: 9.102 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1061, allocations: 0 / 449.5 MB, free: 9.102 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002598/0.1063, allocations: 24 kB / 449.5 MB, free: 9.078 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 8.266e-05/0.1064, allocations: 99.17 kB / 449.6 MB, free: 8.969 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000209/0.1066, allocations: 112.7 kB / 449.7 MB, free: 8.859 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1066, allocations: 4 kB / 449.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.269e-05/0.1067, allocations: 7.984 kB / 449.7 MB, free: 8.848 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004499/0.1071, allocations: 81.34 kB / 449.8 MB, free: 8.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004042/0.1075, allocations: 325.5 kB / 450.1 MB, free: 8.414 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001306/0.1077, allocations: 0.7166 MB / 450.8 MB, free: 7.672 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.841e-05/0.1077, allocations: 23.44 kB / 450.8 MB, free: 7.648 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1077, allocations: 0 / 450.8 MB, free: 7.648 MB / 298.7 MB Notification: Performance of Templates: time 0.002388/0.1101, allocations: 1.449 MB / 452.3 MB, free: 6.195 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches