Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 191.5 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008716/0.0008716, allocations: 97.25 kB / 296.7 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002523/0.0002527, allocations: 4 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2334, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.001793/0.2352, allocations: 1.388 MB / 409.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004258/0.2357, allocations: 159.5 kB / 409.7 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.053e-05/0.2358, allocations: 0 / 409.7 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.204e-05/0.2358, allocations: 7.922 kB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.236, allocations: 7.938 kB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002509/0.2363, allocations: 36.56 kB / 409.7 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.63e-05/0.2364, allocations: 51.84 kB / 409.8 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.2365, allocations: 35.83 kB / 409.8 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.927e-05/0.2366, allocations: 15.88 kB / 409.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.436e-05/0.2366, allocations: 23.86 kB / 409.9 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.2367, allocations: 0 / 409.9 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.281e-05/0.2367, allocations: 4 kB / 409.9 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.201e-05/0.2367, allocations: 7.984 kB / 409.9 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.046e-05/0.2368, allocations: 54.36 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.166e-05/0.2369, allocations: 43.91 kB / 410 MB, free: 25.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.2369, allocations: 1.031 kB / 410 MB, free: 25.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2369, allocations: 0 / 410 MB, free: 25.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.2369, allocations: 0 / 410 MB, free: 25.84 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003968/0.2373, allocations: 377.7 kB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.2373, allocations: 14.12 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.684e-05/0.2374, allocations: 34.75 kB / 410.4 MB, free: 25.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.73e-05/0.2374, allocations: 8.844 kB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001726/0.2376, allocations: 207.9 kB / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.2376, allocations: 8.375 kB / 410.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.517e-05/0.2376, allocations: 5.969 kB / 410.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003399/0.238, allocations: 163.3 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.238, allocations: 3.938 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.238, allocations: 8 kB / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.238, allocations: 0 / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000101/0.2381, allocations: 43.91 kB / 410.8 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003229/0.2385, allocations: 369.8 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.2387, allocations: 115.8 kB / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.854e-05/0.2388, allocations: 54.69 kB / 411.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.2388, allocations: 11.98 kB / 411.4 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.2389, allocations: 38.56 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 2.975e-06/0.2389, allocations: 0 / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003348/0.2392, allocations: 129.6 kB / 411.5 MB, free: 24.06 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.2393, allocations: 110.8 kB / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.756e-05/0.2394, allocations: 140.6 kB / 411.8 MB, free: 23.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.247e-06/0.2394, allocations: 29.7 kB / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.323e-05/0.2394, allocations: 88.14 kB / 411.9 MB, free: 23.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.2394, allocations: 15.83 kB / 411.9 MB, free: 23.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.2394, allocations: 4 kB / 411.9 MB, free: 23.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.148e-05/0.2395, allocations: 318.8 kB / 412.2 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.521e-05/0.2396, allocations: 19.98 kB / 412.2 MB, free: 23.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.749e-05/0.2396, allocations: 71.66 kB / 412.3 MB, free: 23.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.2397, allocations: 103.5 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2398, allocations: 0 / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001521/0.2399, allocations: 113.4 kB / 412.5 MB, free: 22.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.2399, allocations: 8 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2399, allocations: 0 / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.24, allocations: 4 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.698e-05/0.24, allocations: 20.27 kB / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.2401, allocations: 11.94 kB / 412.6 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.847e-05/0.2401, allocations: 4 kB / 412.6 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.2401, allocations: 4 kB / 412.6 MB, free: 22.91 MB / 298.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 () * Number of clocked 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 7.181e-05/0.2402, allocations: 133.7 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.2403, allocations: 77.72 kB / 412.8 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.461e-05/0.2403, allocations: 12.72 kB / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2404, allocations: 3.938 kB / 412.8 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2404, allocations: 0 / 412.8 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2404, allocations: 4 kB / 412.8 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000189/0.2406, allocations: 193.4 kB / 413 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2406, allocations: 0 / 413 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.821e-05/0.2407, allocations: 19.98 kB / 413 MB, free: 22.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.2407, allocations: 0 / 413 MB, free: 22.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.2407, allocations: 8 kB / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2407, allocations: 0 / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2407, allocations: 0 / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.241, allocations: 320.2 kB / 413.3 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.454e-05/0.241, allocations: 96.94 kB / 413.4 MB, free: 21.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.2411, allocations: 4 kB / 413.4 MB, free: 21.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.2411, allocations: 8 kB / 413.4 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.078e-05/0.2412, allocations: 7.984 kB / 413.4 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.2412, allocations: 4 kB / 413.4 MB, free: 21.92 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.101e-05/0.2413, allocations: 103.3 kB / 413.5 MB, free: 21.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2413, allocations: 0 / 413.5 MB, free: 21.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002527/0.2415, allocations: 12 kB / 413.6 MB, free: 21.81 MB / 298.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 () * Number of clocked 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.0004052/0.2419, allocations: 0.8421 MB / 414.4 MB, free: 20.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001578/0.2421, allocations: 72.02 kB / 414.5 MB, free: 20.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2421, allocations: 0 / 414.5 MB, free: 20.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.807e-05/0.2421, allocations: 15.98 kB / 414.5 MB, free: 20.85 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004642/0.2426, allocations: 50.23 kB / 414.5 MB, free: 20.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007879/0.2434, allocations: 0.6154 MB / 415.1 MB, free: 20.1 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001416/0.2436, allocations: 0.7121 MB / 415.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.495e-05/0.2436, allocations: 23.42 kB / 415.9 MB, free: 19.34 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2436, allocations: 0 / 415.9 MB, free: 19.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.615/2.859, allocations: 1.15 MB / 417 MB, free: 18.19 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,sample2.y,hold1.y Variables in the result:feedback.u1,feedback.u2,feedback.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,sample2.u,sample2.y,step.height,step.offset,step.startTime,step.y,time