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-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.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.002255/0.002254, allocations: 177.8 kB / 8.403 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.123/2.123, 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.001103/0.001103, allocations: 91.59 kB / 262.2 MB, free: 1.676 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.1046/0.1046, allocations: 12.59 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.678e-05/2.695e-05, allocations: 4 kB / 378.9 MB, free: 6.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3081, allocations: 50.37 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1388/0.447, allocations: 77.48 MB / 0.4949 GB, free: 4.832 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/0.4474, allocations: 75.95 kB / 0.495 GB, free: 4.758 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005584/0.453, allocations: 1.341 MB / 0.4963 GB, free: 3.418 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.848e-06/0.453, allocations: 0 / 0.4963 GB, free: 3.418 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.402e-05/0.453, allocations: 7.938 kB / 0.4963 GB, free: 3.41 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004294/0.4535, allocations: 346.4 kB / 0.4966 GB, free: 3.027 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.4535, allocations: 8.031 kB / 0.4966 GB, free: 3.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.885e-05/0.4536, allocations: 7.906 kB / 0.4966 GB, free: 3.012 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002327/0.4538, allocations: 186.8 kB / 0.4968 GB, free: 2.789 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.4539, allocations: 7.891 kB / 0.4968 GB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.4539, allocations: 8 kB / 0.4968 GB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.971e-05/0.454, allocations: 12 kB / 0.4968 GB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.4542, allocations: 85.05 kB / 0.4969 GB, free: 2.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.4543, allocations: 0 / 0.4969 GB, free: 2.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.4543, allocations: 0 / 0.4969 GB, free: 2.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.4543, allocations: 3.984 kB / 0.4969 GB, free: 2.656 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000423/0.4547, allocations: 246.3 kB / 0.4971 GB, free: 2.375 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.593e-05/0.4548, allocations: 41.09 kB / 0.4972 GB, free: 2.316 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.729e-05/0.4549, allocations: 13.84 kB / 0.4972 GB, free: 2.297 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.4549, allocations: 0 / 0.4972 GB, free: 2.297 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.4549, allocations: 42.56 kB / 0.4972 GB, free: 2.246 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.4549, allocations: 0 / 0.4972 GB, free: 2.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001874/0.4551, allocations: 45.53 kB / 0.4973 GB, free: 2.195 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.803e-05/0.4552, allocations: 81.11 kB / 0.4974 GB, free: 2.098 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.4554, allocations: 117.2 kB / 0.4975 GB, free: 1.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.4554, allocations: 29.7 kB / 0.4975 GB, free: 1.938 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.825e-05/0.4555, allocations: 154.6 kB / 0.4976 GB, free: 1.785 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.4555, allocations: 11.89 kB / 0.4977 GB, free: 1.773 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-06/0.4555, allocations: 0 / 0.4977 GB, free: 1.773 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4556, allocations: 310.8 kB / 0.498 GB, free: 1.461 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.03e-05/0.4557, allocations: 4 kB / 0.498 GB, free: 1.457 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.855e-05/0.4557, allocations: 13.72 kB / 0.498 GB, free: 1.438 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.698e-05/0.4558, allocations: 4.062 kB / 0.498 GB, free: 1.434 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.4558, allocations: 7.938 kB / 0.498 GB, free: 1.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001048/0.4559, allocations: 49.64 kB / 0.498 GB, free: 1.371 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.4559, allocations: 4 kB / 0.498 GB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.4559, allocations: 0 / 0.498 GB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.456, allocations: 0 / 0.498 GB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.4561, allocations: 8 kB / 0.498 GB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.4561, allocations: 0 / 0.498 GB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.283e-05/0.4562, allocations: 7.984 kB / 0.498 GB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.4562, allocations: 4.062 kB / 0.4981 GB, free: 1.348 MB / 346.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 () * 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 7.887e-05/0.4563, allocations: 101 kB / 0.4981 GB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.579e-05/0.4564, allocations: 49.44 kB / 0.4982 GB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.743e-05/0.4564, allocations: 7.969 kB / 0.4982 GB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.4564, allocations: 7.984 kB / 0.4982 GB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4564, allocations: 0 / 0.4982 GB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4565, allocations: 0 / 0.4982 GB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001856/0.4567, allocations: 138.2 kB / 0.4983 GB, free: 1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.4567, allocations: 4 kB / 0.4983 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.292e-05/0.4568, allocations: 16.02 kB / 0.4984 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.4568, allocations: 3.938 kB / 0.4984 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.4568, allocations: 3.953 kB / 0.4984 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.4568, allocations: 0 / 0.4984 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.4568, allocations: 4 kB / 0.4984 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001619/0.457, allocations: 166 kB / 0.4985 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.824e-05/0.4571, allocations: 85.09 kB / 0.4986 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.4571, allocations: 3.953 kB / 0.4986 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.4572, allocations: 4 kB / 0.4986 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/0.4573, allocations: 3.984 kB / 0.4986 GB, free: 0.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.4573, allocations: 4 kB / 0.4986 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.31e-05/0.4574, allocations: 108.6 kB / 0.4987 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4574, allocations: 0 / 0.4987 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002944/0.4577, allocations: 4 kB / 0.4987 GB, free: 0.5547 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 (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.0001174/0.4578, allocations: 95.28 kB / 0.4988 GB, free: 464 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.712e-05/0.4579, allocations: 8 kB / 0.4988 GB, free: 456 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4579, allocations: 0 / 0.4988 GB, free: 456 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.712e-05/0.458, allocations: 11.94 kB / 0.4988 GB, free: 444 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.4583, allocations: 11.39 kB / 0.4989 GB, free: 436 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003181/0.4586, allocations: 114.6 kB / 0.499 GB, free: 288 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.459, allocations: 0.7043 MB / 0.4997 GB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.571e-05/0.459, allocations: 7.438 kB / 0.4997 GB, free: 15.54 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.459, allocations: 0 / 0.4997 GB, free: 15.54 MB / 362.7 MB Notification: Performance of Templates: time 0.002549/0.4616, allocations: 0.6665 MB / 0.5003 GB, free: 14.88 MB / 362.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