Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001004/0.00101, allocations: 202.3 kB / 17.38 MB, free: 4.43 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: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008676/0.0008676, allocations: 86.33 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002416/0.0002417, allocations: 7.984 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2278, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.001522/0.2294, allocations: 1.262 MB / 409.4 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003053/0.2297, allocations: 133.4 kB / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.93e-05/0.2298, allocations: 0 / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.377e-05/0.2299, allocations: 7.922 kB / 409.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.23, allocations: 7.938 kB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002259/0.2303, allocations: 27.97 kB / 409.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.212e-05/0.2304, allocations: 32.36 kB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.685e-05/0.2305, allocations: 13.19 kB / 409.6 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.225e-05/0.2305, allocations: 17.64 kB / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.79e-05/0.2306, allocations: 7.938 kB / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.2306, allocations: 0 / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.151e-05/0.2306, allocations: 4 kB / 409.6 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.045e-05/0.2307, allocations: 19.84 kB / 409.7 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.872e-05/0.2307, allocations: 46.08 kB / 409.7 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.982e-05/0.2308, allocations: 28.69 kB / 409.7 MB, free: 26.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.2308, allocations: 0 / 409.7 MB, free: 26.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2308, allocations: 2.062 kB / 409.7 MB, free: 26.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.2308, allocations: 0 / 409.7 MB, free: 26.07 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000382/0.2312, allocations: 356.6 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.2312, allocations: 14.19 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.946e-05/0.2313, allocations: 30.75 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.577e-05/0.2313, allocations: 12.78 kB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.2315, allocations: 196 kB / 410.3 MB, free: 25.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.056e-06/0.2315, allocations: 4.375 kB / 410.3 MB, free: 25.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.2315, allocations: 384 / 410.3 MB, free: 25.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.2318, allocations: 120.8 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.2318, allocations: 11.92 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.2318, allocations: 8 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.2318, allocations: 0 / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.087e-05/0.2319, allocations: 23.92 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002717/0.2322, allocations: 253.8 kB / 410.7 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001803/0.2323, allocations: 150.2 kB / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.604e-05/0.2324, allocations: 25.78 kB / 410.9 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.659e-05/0.2324, allocations: 4 kB / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.502e-05/0.2325, allocations: 38.55 kB / 411 MB, free: 24.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.863e-06/0.2325, allocations: 0 / 411 MB, free: 24.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002194/0.2327, allocations: 85.45 kB / 411 MB, free: 24.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.2327, allocations: 77.11 kB / 411.1 MB, free: 24.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.473e-05/0.2328, allocations: 137.2 kB / 411.3 MB, free: 24.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.802e-06/0.2328, allocations: 25.83 kB / 411.3 MB, free: 24.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.99e-05/0.2329, allocations: 88.14 kB / 411.4 MB, free: 24.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.204e-05/0.2329, allocations: 11.89 kB / 411.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-06/0.2329, allocations: 4 kB / 411.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.583e-05/0.233, allocations: 310.8 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.731e-05/0.233, allocations: 11.98 kB / 411.7 MB, free: 23.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.824e-05/0.2331, allocations: 39.56 kB / 411.7 MB, free: 23.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.17e-05/0.2331, allocations: 47.36 kB / 411.8 MB, free: 23.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.2331, allocations: 3.938 kB / 411.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001064/0.2333, allocations: 69.7 kB / 411.9 MB, free: 23.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.2333, allocations: 8 kB / 411.9 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2333, allocations: 0 / 411.9 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.2333, allocations: 3.984 kB / 411.9 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.088e-05/0.2334, allocations: 8 kB / 411.9 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.2334, allocations: 4 kB / 411.9 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.358e-05/0.2334, allocations: 16.11 kB / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.2334, allocations: 0 / 411.9 MB, free: 23.62 MB / 298.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 () * Number of clocked 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 6.079e-05/0.2335, allocations: 129.7 kB / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.456e-05/0.2336, allocations: 49.53 kB / 412.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.088e-05/0.2336, allocations: 8.25 kB / 412.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.2336, allocations: 0 / 412.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.2336, allocations: 0 / 412.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.706e-06/0.2336, allocations: 4 kB / 412.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.2337, allocations: 173.5 kB / 412.2 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2337, allocations: 4 kB / 412.3 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.153e-05/0.2338, allocations: 11.98 kB / 412.3 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2338, allocations: 0 / 412.3 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.2338, allocations: 4 kB / 412.3 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.2338, allocations: 0 / 412.3 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2338, allocations: 0 / 412.3 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001308/0.2339, allocations: 180.2 kB / 412.4 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.512e-05/0.234, allocations: 93 kB / 412.5 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.234, allocations: 0 / 412.5 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.593e-05/0.2341, allocations: 7.938 kB / 412.5 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.236e-05/0.2341, allocations: 4 kB / 412.5 MB, free: 22.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.2341, allocations: 0 / 412.5 MB, free: 22.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.266e-05/0.2342, allocations: 103.2 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2342, allocations: 0 / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001997/0.2344, allocations: 12 kB / 412.7 MB, free: 22.74 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 (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.0003132/0.2347, allocations: 0.6975 MB / 413.4 MB, free: 22.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000115/0.2348, allocations: 39.92 kB / 413.4 MB, free: 21.97 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2348, allocations: 0 / 413.4 MB, free: 21.97 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.964e-05/0.2349, allocations: 11.98 kB / 413.4 MB, free: 21.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003319/0.2352, allocations: 22.42 kB / 413.4 MB, free: 21.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006123/0.2358, allocations: 0.4987 MB / 413.9 MB, free: 21.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.236, allocations: 0.6965 MB / 414.6 MB, free: 20.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.223e-05/0.236, allocations: 15.44 kB / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.236, allocations: 0 / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.509/2.745, allocations: 0.8928 MB / 415.5 MB, free: 19.75 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,step.height,step.offset,step.startTime,step.y,time