Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002275/0.002274, 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.001124/0.001124, allocations: 84.12 kB / 262.1 MB, free: 1.688 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.1025/0.1025, allocations: 12.59 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.687e-05/2.695e-05, allocations: 4 kB / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3053, allocations: 50.37 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1344/0.4397, allocations: 77.74 MB / 0.4951 GB, free: 4.578 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.4401, allocations: 79.95 kB / 0.4952 GB, free: 4.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005687/0.4458, allocations: 1.399 MB / 0.4966 GB, free: 3.102 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.4458, allocations: 0 / 0.4966 GB, free: 3.102 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.4459, allocations: 11.94 kB / 0.4966 GB, free: 3.09 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.0004264/0.4463, allocations: 350.4 kB / 0.4969 GB, free: 2.703 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.4464, allocations: 12.03 kB / 0.4969 GB, free: 2.691 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.971e-05/0.4464, allocations: 7.906 kB / 0.4969 GB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.4467, allocations: 190.8 kB / 0.4971 GB, free: 2.457 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.4467, allocations: 3.953 kB / 0.4971 GB, free: 2.453 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.4467, allocations: 4 kB / 0.4971 GB, free: 2.449 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.498e-05/0.4468, allocations: 12 kB / 0.4971 GB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000254/0.4471, allocations: 108.9 kB / 0.4972 GB, free: 2.312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.4471, allocations: 0 / 0.4972 GB, free: 2.312 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.4471, allocations: 4 kB / 0.4973 GB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.4471, allocations: 0 / 0.4973 GB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004002/0.4475, allocations: 254.3 kB / 0.4975 GB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.4478, allocations: 126.3 kB / 0.4976 GB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.382e-05/0.4478, allocations: 29.86 kB / 0.4976 GB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.4479, allocations: 3.984 kB / 0.4976 GB, free: 1.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.4479, allocations: 38.56 kB / 0.4977 GB, free: 1.773 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.754e-06/0.4479, allocations: 0 / 0.4977 GB, free: 1.773 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001969/0.4481, allocations: 53.53 kB / 0.4977 GB, free: 1.715 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.4482, allocations: 81.11 kB / 0.4978 GB, free: 1.617 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.4484, allocations: 121.2 kB / 0.4979 GB, free: 1.488 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.4484, allocations: 25.7 kB / 0.498 GB, free: 1.457 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.816e-05/0.4485, allocations: 154.6 kB / 0.4981 GB, free: 1.305 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.4485, allocations: 4 kB / 0.4981 GB, free: 1.301 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-06/0.4485, allocations: 0 / 0.4981 GB, free: 1.301 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4486, allocations: 314.8 kB / 0.4984 GB, free: 0.9844 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.945e-05/0.4487, allocations: 4 kB / 0.4984 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.136e-05/0.4487, allocations: 31.38 kB / 0.4984 GB, free: 0.9375 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.177e-05/0.4488, allocations: 8 kB / 0.4984 GB, free: 0.9297 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.4488, allocations: 4 kB / 0.4984 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000121/0.4489, allocations: 57.48 kB / 0.4985 GB, free: 0.8633 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.4489, allocations: 8 kB / 0.4985 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.449, allocations: 0 / 0.4985 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.449, allocations: 0 / 0.4985 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.4491, allocations: 11.98 kB / 0.4985 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.4491, allocations: 8.125 kB / 0.4985 GB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.593e-05/0.4492, allocations: 4 kB / 0.4985 GB, free: 0.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.4492, allocations: 7.984 kB / 0.4985 GB, free: 0.8242 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.601e-05/0.4493, allocations: 112.9 kB / 0.4986 GB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.212e-05/0.4494, allocations: 53.48 kB / 0.4987 GB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.248e-05/0.4495, allocations: 12.34 kB / 0.4987 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.4495, allocations: 0 / 0.4987 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4495, allocations: 0 / 0.4987 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.4495, allocations: 7.984 kB / 0.4987 GB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.4497, allocations: 150.2 kB / 0.4989 GB, free: 452 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.4497, allocations: 0 / 0.4989 GB, free: 452 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.542e-05/0.4498, allocations: 11.94 kB / 0.4989 GB, free: 440 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.4499, allocations: 192 / 0.4989 GB, free: 440 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.4499, allocations: 3.953 kB / 0.4989 GB, free: 436 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4499, allocations: 4 kB / 0.4989 GB, free: 432 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.4499, allocations: 0 / 0.4989 GB, free: 432 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001729/0.4501, allocations: 177.9 kB / 0.4991 GB, free: 228 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.239e-05/0.4502, allocations: 89 kB / 0.4991 GB, free: 120 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.4502, allocations: 7.953 kB / 0.4991 GB, free: 112 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.4503, allocations: 0 / 0.4991 GB, free: 112 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.792e-05/0.4504, allocations: 8 kB / 0.4992 GB, free: 104 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.4504, allocations: 0 / 0.4992 GB, free: 104 kB / 346.7 MB Notification: Performance of sorting global known variables: time 9.074e-05/0.4505, allocations: 104.7 kB / 0.4993 GB, free: 0 / 346.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.4505, allocations: 0 / 0.4993 GB, free: 0 / 346.7 MB Notification: Performance of remove unused functions: time 0.0002917/0.4508, allocations: 8.094 kB / 0.4993 GB, free: 15.99 MB / 362.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.000111/0.4509, allocations: 95.23 kB / 0.4994 GB, free: 15.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001106/0.4511, allocations: 19.94 kB / 0.4994 GB, free: 15.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4511, allocations: 0 / 0.4994 GB, free: 15.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.333e-05/0.4511, allocations: 4 kB / 0.4994 GB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.4514, allocations: 19.39 kB / 0.4994 GB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003377/0.4518, allocations: 126.9 kB / 0.4995 GB, free: 15.69 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.4521, allocations: 0.7079 MB / 0.5002 GB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.4522, allocations: 7.438 kB / 0.5002 GB, free: 14.95 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.4522, allocations: 4 kB / 0.5002 GB, free: 14.95 MB / 362.7 MB Notification: Performance of Templates: time 0.002833/0.455, allocations: 0.7135 MB / 0.5009 GB, free: 14.24 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches