Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.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.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002253/0.002252, allocations: 180 kB / 8.406 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.14/2.14, allocations: 205.3 MB / 214.1 MB, free: 1.738 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.00111/0.00111, allocations: 94.62 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.09976/0.09976, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.296e-05/2.308e-05, allocations: 4 kB / 378.9 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3066, allocations: 50.37 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.4422, allocations: 77.45 MB / 0.4949 GB, free: 4.867 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.4426, allocations: 75.95 kB / 0.4949 GB, free: 4.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005164/0.4478, allocations: 1.381 MB / 0.4963 GB, free: 3.414 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4478, allocations: 0 / 0.4963 GB, free: 3.414 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.4478, allocations: 4 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004295/0.4483, allocations: 358.4 kB / 0.4966 GB, free: 3.016 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.4483, allocations: 12.03 kB / 0.4966 GB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.49e-05/0.4484, allocations: 11.81 kB / 0.4966 GB, free: 2.992 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.4486, allocations: 190.8 kB / 0.4968 GB, free: 2.766 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.4487, allocations: 0 / 0.4968 GB, free: 2.766 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.4487, allocations: 7.953 kB / 0.4968 GB, free: 2.758 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001375/0.4488, allocations: 35.92 kB / 0.4969 GB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003387/0.4492, allocations: 137.8 kB / 0.497 GB, free: 2.566 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.4492, allocations: 0 / 0.497 GB, free: 2.566 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.4492, allocations: 0 / 0.497 GB, free: 2.566 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.4492, allocations: 7.984 kB / 0.497 GB, free: 2.559 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004744/0.4497, allocations: 350.3 kB / 0.4973 GB, free: 2.172 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.45, allocations: 99.81 kB / 0.4974 GB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.4501, allocations: 50.7 kB / 0.4975 GB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.4502, allocations: 8.031 kB / 0.4975 GB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.4502, allocations: 34.56 kB / 0.4975 GB, free: 1.938 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 3.857e-06/0.4502, allocations: 0 / 0.4975 GB, free: 1.938 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002625/0.4505, allocations: 77.53 kB / 0.4976 GB, free: 1.855 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/0.4506, allocations: 110.8 kB / 0.4977 GB, free: 1.723 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.4507, allocations: 121.2 kB / 0.4978 GB, free: 1.594 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.4508, allocations: 25.7 kB / 0.4978 GB, free: 1.562 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.808e-05/0.4509, allocations: 162.6 kB / 0.498 GB, free: 1.402 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.4509, allocations: 11.83 kB / 0.498 GB, free: 1.391 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.679e-06/0.4509, allocations: 0 / 0.498 GB, free: 1.391 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.4511, allocations: 318.8 kB / 0.4983 GB, free: 1.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.927e-05/0.4511, allocations: 7.938 kB / 0.4983 GB, free: 1.062 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.819e-05/0.4512, allocations: 71.66 kB / 0.4984 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.283e-05/0.4513, allocations: 19.94 kB / 0.4984 GB, free: 0.9453 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.4513, allocations: 7.953 kB / 0.4984 GB, free: 0.9375 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00018/0.4515, allocations: 73.55 kB / 0.4985 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.4515, allocations: 8 kB / 0.4985 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.4515, allocations: 0 / 0.4985 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.4516, allocations: 4 kB / 0.4985 GB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.4517, allocations: 24.22 kB / 0.4985 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.4517, allocations: 7.984 kB / 0.4985 GB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.998e-05/0.4518, allocations: 7.906 kB / 0.4985 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.4519, allocations: 8 kB / 0.4985 GB, free: 0.8008 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.284e-05/0.4519, allocations: 105 kB / 0.4986 GB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001851/0.4521, allocations: 77.62 kB / 0.4987 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.532e-05/0.4522, allocations: 12.62 kB / 0.4987 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.4522, allocations: 0 / 0.4987 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4523, allocations: 8 kB / 0.4987 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.4523, allocations: 3.984 kB / 0.4987 GB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002702/0.4525, allocations: 158.1 kB / 0.4989 GB, free: 400 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.4526, allocations: 4 kB / 0.4989 GB, free: 396 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.4527, allocations: 19.98 kB / 0.4989 GB, free: 376 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.4527, allocations: 3.953 kB / 0.4989 GB, free: 372 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.4528, allocations: 0 / 0.4989 GB, free: 372 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.4528, allocations: 4 kB / 0.4989 GB, free: 368 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4528, allocations: 0 / 0.4989 GB, free: 368 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004018/0.4532, allocations: 323.7 kB / 0.4992 GB, free: 8 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.4533, allocations: 96.91 kB / 0.4993 GB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.4534, allocations: 4 kB / 0.4993 GB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.4535, allocations: 7.953 kB / 0.4993 GB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.555e-05/0.4536, allocations: 7.984 kB / 0.4993 GB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/0.4536, allocations: 0 / 0.4993 GB, free: 15.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.843e-05/0.4537, allocations: 104.7 kB / 0.4994 GB, free: 15.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.4537, allocations: 0 / 0.4994 GB, free: 15.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003961/0.4541, allocations: 8 kB / 0.4994 GB, free: 15.77 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.0001247/0.4542, allocations: 95.47 kB / 0.4995 GB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001703/0.4544, allocations: 48.06 kB / 0.4996 GB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4544, allocations: 3.938 kB / 0.4996 GB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.521e-05/0.4545, allocations: 4 kB / 0.4996 GB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.4549, allocations: 39.33 kB / 0.4996 GB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004323/0.4554, allocations: 152.9 kB / 0.4998 GB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.4557, allocations: 0.7123 MB / 0.5005 GB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.965e-05/0.4558, allocations: 15.42 kB / 0.5005 GB, free: 14.64 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.4558, allocations: 0 / 0.5005 GB, free: 14.64 MB / 362.7 MB Notification: Performance of Templates: time 0.002983/0.4588, allocations: 0.8758 MB / 0.5013 GB, free: 13.77 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches