Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001503/0.001503, allocations: 179.4 kB / 8.407 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.096/2.096, allocations: 205.3 MB / 214.1 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 86.64 kB / 262.1 MB, free: 1.68 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.1019/0.1019, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.106e-05/2.12e-05, allocations: 0 / 378.9 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3073, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.4406, allocations: 77.13 MB / 0.4945 GB, free: 5.195 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003044/0.441, allocations: 79.95 kB / 0.4946 GB, free: 5.117 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004174/0.4451, allocations: 1.112 MB / 0.4957 GB, free: 4.008 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4452, allocations: 3.938 kB / 0.4957 GB, free: 4.004 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.4452, allocations: 0 / 0.4957 GB, free: 4.004 MB / 346.7 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.0003959/0.4456, allocations: 342.5 kB / 0.496 GB, free: 3.625 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.4457, allocations: 8.031 kB / 0.496 GB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.4457, allocations: 11.91 kB / 0.496 GB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.446, allocations: 194.8 kB / 0.4962 GB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.446, allocations: 0 / 0.4962 GB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.4461, allocations: 7.953 kB / 0.4962 GB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.176e-05/0.4462, allocations: 12 kB / 0.4963 GB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002536/0.4464, allocations: 101 kB / 0.4963 GB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.4465, allocations: 4 kB / 0.4964 GB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.4465, allocations: 0 / 0.4964 GB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.896e-06/0.4465, allocations: 0 / 0.4964 GB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003853/0.4469, allocations: 242.3 kB / 0.4966 GB, free: 2.957 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002083/0.4471, allocations: 138.2 kB / 0.4967 GB, free: 2.785 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.492e-05/0.4472, allocations: 21.84 kB / 0.4967 GB, free: 2.758 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.4472, allocations: 4 kB / 0.4967 GB, free: 2.754 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.4473, allocations: 30.56 kB / 0.4968 GB, free: 2.715 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.934e-06/0.4473, allocations: 3.938 kB / 0.4968 GB, free: 2.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001803/0.4475, allocations: 53.67 kB / 0.4968 GB, free: 2.652 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.4475, allocations: 85.14 kB / 0.4969 GB, free: 2.551 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.4477, allocations: 114.7 kB / 0.497 GB, free: 2.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.4477, allocations: 25.7 kB / 0.497 GB, free: 2.398 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.105e-05/0.4478, allocations: 154.6 kB / 0.4972 GB, free: 2.246 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.4478, allocations: 11.84 kB / 0.4972 GB, free: 2.234 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-06/0.4478, allocations: 0 / 0.4972 GB, free: 2.234 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.448, allocations: 314.8 kB / 0.4975 GB, free: 1.918 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.801e-05/0.448, allocations: 4 kB / 0.4975 GB, free: 1.914 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.006e-05/0.448, allocations: 31.38 kB / 0.4975 GB, free: 1.871 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.516e-05/0.4481, allocations: 8 kB / 0.4975 GB, free: 1.863 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.4481, allocations: 4 kB / 0.4975 GB, free: 1.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001058/0.4482, allocations: 49.7 kB / 0.4976 GB, free: 1.805 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.4482, allocations: 8 kB / 0.4976 GB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.4483, allocations: 4 kB / 0.4976 GB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.4483, allocations: 0 / 0.4976 GB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.4484, allocations: 11.98 kB / 0.4976 GB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.4484, allocations: 3.984 kB / 0.4976 GB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.593e-05/0.4485, allocations: 8 kB / 0.4976 GB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.4485, allocations: 4 kB / 0.4976 GB, free: 1.766 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.314e-05/0.4486, allocations: 108.9 kB / 0.4977 GB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.921e-05/0.4487, allocations: 53.55 kB / 0.4978 GB, free: 1.594 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.429e-05/0.4488, allocations: 12.34 kB / 0.4978 GB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4488, allocations: 0 / 0.4978 GB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.4488, allocations: 0 / 0.4978 GB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.4488, allocations: 0 / 0.4978 GB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.449, allocations: 142.2 kB / 0.4979 GB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.449, allocations: 0 / 0.4979 GB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.144e-05/0.4491, allocations: 12 kB / 0.4979 GB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.213e-06/0.4491, allocations: 4 kB / 0.4979 GB, free: 1.387 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.4492, allocations: 3.953 kB / 0.4979 GB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.4492, allocations: 7.984 kB / 0.498 GB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.4492, allocations: 0 / 0.498 GB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001614/0.4494, allocations: 166 kB / 0.4981 GB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.462e-05/0.4495, allocations: 92.94 kB / 0.4982 GB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.4495, allocations: 7.953 kB / 0.4982 GB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.785e-05/0.4496, allocations: 8 kB / 0.4982 GB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.4496, allocations: 4 kB / 0.4982 GB, free: 1.059 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.4497, allocations: 0 / 0.4982 GB, free: 1.059 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.741e-05/0.4498, allocations: 101 kB / 0.4983 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4498, allocations: 0 / 0.4983 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003091/0.4501, allocations: 4 kB / 0.4983 GB, free: 0.957 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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 (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.0001266/0.4502, allocations: 95.25 kB / 0.4984 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.4503, allocations: 19.92 kB / 0.4984 GB, free: 0.8359 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.4504, allocations: 4.25 kB / 0.4984 GB, free: 0.832 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.814e-05/0.4504, allocations: 4 kB / 0.4984 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.4507, allocations: 19.34 kB / 0.4985 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000331/0.4511, allocations: 122.5 kB / 0.4986 GB, free: 0.6562 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.4514, allocations: 0.6962 MB / 0.4993 GB, free: 15.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.937e-05/0.4515, allocations: 11.44 kB / 0.4993 GB, free: 15.92 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/0.4515, allocations: 0 / 0.4993 GB, free: 15.92 MB / 362.7 MB Notification: Performance of Templates: time 0.003646/0.4552, allocations: 0.6604 MB / 0.4999 GB, free: 15.26 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches