Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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/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/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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00182/0.00182, allocations: 181.2 kB / 17.46 MB, free: 4.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.106/3.106, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.001229/0.001229, allocations: 89.36 kB / 271.9 MB, free: 8.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1526/0.1526, allocations: 12.19 MB / 332.4 MB, free: 11.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006144/0.0006144, allocations: 16 kB / 392.7 MB, free: 67.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1475, allocations: 50.29 MB / 443 MB, free: 16.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5426/0.6902, allocations: 78.22 MB / 0.509 GB, free: 12.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003602/0.6906, allocations: 82.23 kB / 0.5091 GB, free: 12.95 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00812/0.6987, allocations: 1.914 MB / 0.511 GB, free: 12.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.6988, allocations: 0 / 0.511 GB, free: 12.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.6989, allocations: 0 / 0.511 GB, free: 12.42 MB / 330.7 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.0005002/0.6994, allocations: 370.7 kB / 0.5113 GB, free: 12.03 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/0.6994, allocations: 11.53 kB / 0.5113 GB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.929e-05/0.6995, allocations: 4.781 kB / 0.5113 GB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.6997, allocations: 191.7 kB / 0.5115 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.6998, allocations: 384 / 0.5115 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.6998, allocations: 4.219 kB / 0.5115 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003588/0.7002, allocations: 98.72 kB / 0.5116 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.7002, allocations: 4.094 kB / 0.5116 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.7002, allocations: 11.88 kB / 0.5116 GB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.7003, allocations: 0 / 0.5116 GB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.7004, allocations: 26.73 kB / 0.5117 GB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000481/0.7009, allocations: 265.5 kB / 0.5119 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000118/0.701, allocations: 56.27 kB / 0.512 GB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.558e-05/0.7011, allocations: 17.41 kB / 0.512 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.7012, allocations: 0 / 0.512 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.7012, allocations: 40.84 kB / 0.512 GB, free: 11.31 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.7012, allocations: 0 / 0.512 GB, free: 11.31 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0004153/0.7017, allocations: 70.39 kB / 0.5121 GB, free: 11.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/0.7017, allocations: 77.11 kB / 0.5122 GB, free: 11.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.7019, allocations: 140.2 kB / 0.5123 GB, free: 11.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.7019, allocations: 25.95 kB / 0.5123 GB, free: 11.04 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.08e-05/0.702, allocations: 98.58 kB / 0.5124 GB, free: 10.94 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.702, allocations: 0 / 0.5124 GB, free: 10.94 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.219e-06/0.7021, allocations: 0 / 0.5124 GB, free: 10.94 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.121e-05/0.7021, allocations: 321.7 kB / 0.5127 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.127e-05/0.7022, allocations: 7.781 kB / 0.5127 GB, free: 10.62 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.392e-05/0.7023, allocations: 28.83 kB / 0.5128 GB, free: 10.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.7024, allocations: 33.55 kB / 0.5128 GB, free: 10.58 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.7025, allocations: 3.938 kB / 0.5128 GB, free: 10.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001784/0.7026, allocations: 56.88 kB / 0.5128 GB, free: 10.54 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.7027, allocations: 11.69 kB / 0.5129 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.7027, allocations: 0 / 0.5129 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.745e-05/0.7027, allocations: 0 / 0.5129 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.7028, allocations: 11.8 kB / 0.5129 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.7029, allocations: 3.812 kB / 0.5129 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.982e-05/0.7029, allocations: 7.906 kB / 0.5129 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.703, allocations: 3.844 kB / 0.5129 GB, free: 10.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.7031, allocations: 120.7 kB / 0.513 GB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.304e-05/0.7032, allocations: 48.06 kB / 0.513 GB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.614e-05/0.7032, allocations: 11.22 kB / 0.513 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.7033, allocations: 0 / 0.513 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.7033, allocations: 0 / 0.513 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.7033, allocations: 3.984 kB / 0.5131 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002269/0.7035, allocations: 171.9 kB / 0.5132 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.7035, allocations: 3.844 kB / 0.5132 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.262e-05/0.7036, allocations: 7.859 kB / 0.5132 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.7036, allocations: 0 / 0.5132 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.7036, allocations: 4.031 kB / 0.5132 GB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.7037, allocations: 3.969 kB / 0.5132 GB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.7037, allocations: 0 / 0.5132 GB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002351/0.7039, allocations: 174.5 kB / 0.5134 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.321e-05/0.704, allocations: 88.88 kB / 0.5135 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.473e-05/0.704, allocations: 4.031 kB / 0.5135 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.7042, allocations: 3.781 kB / 0.5135 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.736e-05/0.7042, allocations: 3.312 kB / 0.5135 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.7043, allocations: 0 / 0.5135 GB, free: 9.867 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.668e-05/0.7043, allocations: 108.7 kB / 0.5136 GB, free: 9.785 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.7044, allocations: 0 / 0.5136 GB, free: 9.785 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004061/0.7048, allocations: 7.719 kB / 0.5136 GB, free: 9.785 MB / 330.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 () * 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 (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.0001111/0.7049, allocations: 91.09 kB / 0.5137 GB, free: 9.699 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001971/0.7051, allocations: 26.86 kB / 0.5137 GB, free: 9.691 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.7051, allocations: 0 / 0.5137 GB, free: 9.691 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.398e-05/0.7052, allocations: 15.64 kB / 0.5137 GB, free: 9.684 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005483/0.7058, allocations: 18.22 kB / 0.5138 GB, free: 9.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004724/0.7062, allocations: 205.9 kB / 0.5139 GB, free: 9.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/0.7065, allocations: 0.6956 MB / 0.5146 GB, free: 8.773 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.708e-05/0.7065, allocations: 7.438 kB / 0.5146 GB, free: 8.766 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.7065, allocations: 3.844 kB / 0.5146 GB, free: 8.766 MB / 330.7 MB Notification: Performance of Templates: time 0.003209/0.7097, allocations: 0.6738 MB / 0.5153 GB, free: 8.43 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches