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.001358/0.001358, allocations: 182 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.583/1.583, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0008069/0.0008074, allocations: 94.3 kB / 270.9 MB, free: 8.348 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.07755/0.07755, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004262/0.0004264, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06902/0.06947, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.001258/0.07077, allocations: 1.25 MB / 443.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006375/0.07143, allocations: 484.1 kB / 444.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.877e-05/0.07153, allocations: 4 kB / 444.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.678e-05/0.07157, allocations: 7.922 kB / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.07169, allocations: 3.938 kB / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.07196, allocations: 39.84 kB / 444.2 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.011e-05/0.07205, allocations: 39.86 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.033e-05/0.07215, allocations: 11.97 kB / 444.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.824e-05/0.07221, allocations: 15.94 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.556e-05/0.07227, allocations: 11.92 kB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.07229, allocations: 0 / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.164e-05/0.07231, allocations: 4 kB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.818e-05/0.07234, allocations: 15.92 kB / 444.3 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.595e-05/0.07236, allocations: 29.7 kB / 444.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.813e-05/0.07242, allocations: 31.88 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.07243, allocations: 8 kB / 444.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.07244, allocations: 0 / 444.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.655e-06/0.07245, allocations: 0 / 444.3 MB, free: 14.49 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003373/0.0728, allocations: 367.2 kB / 444.7 MB, free: 14.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.07283, allocations: 8.031 kB / 444.7 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.153e-05/0.07287, allocations: 7.906 kB / 444.7 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.07301, allocations: 178.9 kB / 444.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.783e-06/0.07302, allocations: 4 kB / 444.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.07304, allocations: 11.94 kB / 444.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002061/0.07325, allocations: 93.03 kB / 445 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.07327, allocations: 0 / 445 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.07329, allocations: 0 / 445 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.07329, allocations: 0 / 445 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.391e-05/0.07338, allocations: 27.98 kB / 445 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002465/0.07364, allocations: 261.7 kB / 445.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.444e-05/0.07373, allocations: 49.2 kB / 445.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.131e-05/0.07379, allocations: 25.7 kB / 445.3 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.07381, allocations: 0 / 445.3 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.678e-05/0.07384, allocations: 30.56 kB / 445.4 MB, free: 13.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.07384, allocations: 0 / 445.4 MB, free: 13.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002262/0.07407, allocations: 81.61 kB / 445.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.07412, allocations: 81.11 kB / 445.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.427e-05/0.07421, allocations: 133 kB / 445.7 MB, free: 12.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.566e-06/0.07422, allocations: 25.7 kB / 445.7 MB, free: 12.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.02e-05/0.07426, allocations: 92.08 kB / 445.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.213e-05/0.07428, allocations: 7.922 kB / 445.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-06/0.07429, allocations: 160 / 445.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.552e-05/0.07434, allocations: 326.8 kB / 446.1 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.955e-05/0.07438, allocations: 4 kB / 446.1 MB, free: 12.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.522e-05/0.07443, allocations: 21.7 kB / 446.1 MB, free: 12.44 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.231e-05/0.07448, allocations: 20 kB / 446.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.07448, allocations: 0 / 446.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001045/0.07459, allocations: 61.58 kB / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.07461, allocations: 8 kB / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.07462, allocations: 0 / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.07464, allocations: 0 / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.545e-05/0.07471, allocations: 4 kB / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.07472, allocations: 3.984 kB / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.505e-05/0.07476, allocations: 12 kB / 446.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.872e-06/0.07478, allocations: 4 kB / 446.2 MB, free: 12.32 MB / 298.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 5.151e-05/0.07483, allocations: 121.6 kB / 446.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.529e-05/0.07488, allocations: 37.59 kB / 446.4 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.07492, allocations: 15.83 kB / 446.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.07492, allocations: 0 / 446.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.07493, allocations: 0 / 446.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.07494, allocations: 7.984 kB / 446.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.07506, allocations: 177.6 kB / 446.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.07507, allocations: 0 / 446.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.497e-05/0.07512, allocations: 7.984 kB / 446.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.07513, allocations: 4 kB / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.07514, allocations: 7.938 kB / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.07514, allocations: 0 / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.07515, allocations: 0 / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001235/0.07528, allocations: 168.2 kB / 446.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.375e-05/0.07532, allocations: 89.09 kB / 446.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.07534, allocations: 0 / 446.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.709e-05/0.07541, allocations: 7.984 kB / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/0.07544, allocations: 0 / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.07545, allocations: 4 kB / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.258e-05/0.0755, allocations: 111.2 kB / 447 MB, free: 11.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0755, allocations: 3.938 kB / 447 MB, free: 11.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002058/0.07571, allocations: 8 kB / 447 MB, free: 11.46 MB / 298.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 6.661e-05/0.07579, allocations: 91.25 kB / 447.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001166/0.07591, allocations: 27.92 kB / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.07592, allocations: 0 / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.477e-05/0.07596, allocations: 12.12 kB / 447.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.07627, allocations: 23.97 kB / 447.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002536/0.07653, allocations: 203 kB / 447.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001011/0.07665, allocations: 0.6889 MB / 448 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.444e-05/0.07668, allocations: 11.44 kB / 448 MB, free: 10.34 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.07668, allocations: 0 / 448 MB, free: 10.34 MB / 298.7 MB Notification: Performance of Templates: time 0.001532/0.07822, allocations: 0.6757 MB / 448.7 MB, free: 9.672 MB / 298.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/jenkins/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