Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.TimeBasedSine,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001402, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 226.5 MB / 244.7 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009596/0.0009592, allocations: 86.25 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004576/0.0004579, allocations: 4 kB / 356.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3289, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.001736/0.3307, allocations: 1.21 MB / 409.3 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007723/0.3315, allocations: 448.8 kB / 409.8 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.467e-05/0.3316, allocations: 1.906 kB / 409.8 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.951e-05/0.3316, allocations: 3.984 kB / 409.8 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.04e-05/0.3317, allocations: 3.938 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.3321, allocations: 39.66 kB / 409.8 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.3322, allocations: 31.86 kB / 409.9 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.3324, allocations: 9.297 kB / 409.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.3325, allocations: 25.95 kB / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.553e-05/0.3326, allocations: 11.94 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.477e-05/0.3326, allocations: 0 / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.776e-05/0.3327, allocations: 11.98 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.506e-05/0.3327, allocations: 0 / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.996e-05/0.3327, allocations: 45.56 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.009e-05/0.3328, allocations: 24.92 kB / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3329, allocations: 0 / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3329, allocations: 1.281 kB / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.3329, allocations: 0 / 410 MB, free: 25.81 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005013/0.3334, allocations: 349.3 kB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/0.3334, allocations: 9.688 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.979e-05/0.3335, allocations: 34.75 kB / 410.4 MB, free: 25.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.3337, allocations: 16.83 kB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.3338, allocations: 180.8 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.133e-06/0.3338, allocations: 1.125 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.3339, allocations: 8.312 kB / 410.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003162/0.3342, allocations: 126.7 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3342, allocations: 0 / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.3342, allocations: 4 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.3342, allocations: 4 kB / 410.7 MB, free: 24.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.177e-05/0.3343, allocations: 19.98 kB / 410.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001186/0.3344, allocations: 165.6 kB / 410.9 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001426/0.3346, allocations: 70.48 kB / 411 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.019e-05/0.3347, allocations: 20.89 kB / 411 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.3347, allocations: 4.031 kB / 411 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.3347, allocations: 42.44 kB / 411 MB, free: 24.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.3347, allocations: 0 / 411 MB, free: 24.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002324/0.335, allocations: 89.7 kB / 411.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.335, allocations: 55.34 kB / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.552e-05/0.3351, allocations: 113.8 kB / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.3351, allocations: 29.7 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.788e-05/0.3352, allocations: 80.14 kB / 411.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.138e-06/0.3352, allocations: 11.98 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.284e-06/0.3352, allocations: 0 / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.152e-05/0.3352, allocations: 314.8 kB / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.728e-06/0.3353, allocations: 4 kB / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.896e-05/0.3353, allocations: 31.42 kB / 411.7 MB, free: 23.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.38e-05/0.3353, allocations: 35.38 kB / 411.8 MB, free: 23.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3353, allocations: 0 / 411.8 MB, free: 23.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.324e-05/0.3354, allocations: 57.56 kB / 411.8 MB, free: 23.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.3354, allocations: 8 kB / 411.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3354, allocations: 0 / 411.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3354, allocations: 0 / 411.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.581e-05/0.3355, allocations: 11.94 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3355, allocations: 0 / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.884e-05/0.3355, allocations: 0 / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.3356, allocations: 8.125 kB / 411.9 MB, free: 23.7 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.092e-05/0.3356, allocations: 113.8 kB / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.3357, allocations: 69.52 kB / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.329e-05/0.3358, allocations: 7.906 kB / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3358, allocations: 0 / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.3358, allocations: 0 / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3358, allocations: 0 / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.281e-05/0.3359, allocations: 165.7 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3359, allocations: 0 / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.411e-05/0.3359, allocations: 19.86 kB / 412.2 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.336, allocations: 0 / 412.2 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.336, allocations: 4 kB / 412.2 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.336, allocations: 0 / 412.2 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.336, allocations: 0 / 412.2 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001288/0.3361, allocations: 96.95 kB / 412.3 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.431e-05/0.3362, allocations: 85.05 kB / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.3362, allocations: 4.375 kB / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.302e-05/0.3362, allocations: 11.98 kB / 412.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-06/0.3362, allocations: 0 / 412.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.3362, allocations: 0 / 412.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.042e-05/0.3363, allocations: 91.22 kB / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3363, allocations: 0 / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001834/0.3365, allocations: 4 kB / 412.5 MB, free: 22.92 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0003115/0.3368, allocations: 0.6318 MB / 413.1 MB, free: 22.26 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001142/0.3369, allocations: 40.05 kB / 413.2 MB, free: 22.22 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3369, allocations: 0 / 413.2 MB, free: 22.22 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.82e-07/0.3369, allocations: 0 / 413.2 MB, free: 22.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.3372, allocations: 19.98 kB / 413.2 MB, free: 22.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005662/0.3378, allocations: 446.9 kB / 413.6 MB, free: 21.7 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.3379, allocations: 0.6852 MB / 414.3 MB, free: 20.99 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.257e-05/0.338, allocations: 15.42 kB / 414.3 MB, free: 20.98 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.338, allocations: 0 / 414.3 MB, free: 20.98 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.477/2.815, allocations: 0.8089 MB / 415.1 MB, free: 20.18 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,sine.amplitude,sine.f,sine.offset,sine.phase,sine.simTime,sine.startTime,sine.y,time