Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.001225, allocations: 192.6 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 226.5 MB / 244.7 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007402/0.0007403, allocations: 96.03 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003345/0.0003346, allocations: 11.94 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.255, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.001515/0.2565, allocations: 1.285 MB / 409.4 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006083/0.2571, allocations: 481.2 kB / 409.9 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.731e-05/0.2572, allocations: 3.938 kB / 409.9 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.454e-05/0.2573, allocations: 0.5 kB / 409.9 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.2574, allocations: 13.7 kB / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.2577, allocations: 35.91 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.873e-05/0.2577, allocations: 39.86 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.626e-05/0.2578, allocations: 16.61 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.878e-05/0.2579, allocations: 24.75 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.094e-05/0.258, allocations: 11.88 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.363e-05/0.258, allocations: 4.594 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.786e-05/0.2581, allocations: 9.516 kB / 410.1 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.2581, allocations: 8 kB / 410.1 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.895e-05/0.2582, allocations: 49.5 kB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.33e-05/0.2582, allocations: 39.92 kB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2583, allocations: 1.25 kB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2583, allocations: 3.938 kB / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.2583, allocations: 0 / 410.2 MB, free: 25.66 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.0003729/0.2587, allocations: 367.3 kB / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.2587, allocations: 8.031 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.282e-05/0.2587, allocations: 38.75 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.2589, allocations: 20.83 kB / 410.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/0.259, allocations: 193.7 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.966e-06/0.2591, allocations: 4.312 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-06/0.2591, allocations: 4.375 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002515/0.2593, allocations: 129.2 kB / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2593, allocations: 0 / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.2594, allocations: 0 / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.2594, allocations: 0 / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.738e-05/0.2595, allocations: 31.92 kB / 410.9 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000252/0.2597, allocations: 261.8 kB / 411.2 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001701/0.2599, allocations: 146.3 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.881e-05/0.26, allocations: 29.7 kB / 411.4 MB, free: 24.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.609e-05/0.26, allocations: 0 / 411.4 MB, free: 24.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.476e-05/0.26, allocations: 38.55 kB / 411.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.26, allocations: 0 / 411.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002496/0.2603, allocations: 93.5 kB / 411.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.2603, allocations: 77.11 kB / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.162e-05/0.2604, allocations: 140.4 kB / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.215e-06/0.2604, allocations: 25.7 kB / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.94e-05/0.2604, allocations: 92.12 kB / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.115e-05/0.2605, allocations: 4 kB / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-06/0.2605, allocations: 0 / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.8e-05/0.2605, allocations: 322.9 kB / 412.1 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.027e-05/0.2606, allocations: 15.92 kB / 412.2 MB, free: 23.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.016e-05/0.2606, allocations: 35.42 kB / 412.2 MB, free: 23.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.675e-05/0.2607, allocations: 59.36 kB / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2607, allocations: 0 / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001105/0.2608, allocations: 69.62 kB / 412.3 MB, free: 23.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.2608, allocations: 8.031 kB / 412.3 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2609, allocations: 4 kB / 412.3 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.2609, allocations: 0 / 412.3 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.877e-05/0.2609, allocations: 15.92 kB / 412.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/0.261, allocations: 0 / 412.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.887e-05/0.261, allocations: 7.938 kB / 412.3 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.261, allocations: 4 kB / 412.4 MB, free: 23.18 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 5.653e-05/0.2611, allocations: 129.6 kB / 412.5 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.625e-05/0.2611, allocations: 49.61 kB / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.271e-05/0.2612, allocations: 16.23 kB / 412.5 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2612, allocations: 3.938 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2612, allocations: 0 / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2612, allocations: 0 / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001182/0.2613, allocations: 173.6 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2613, allocations: 4 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.918e-05/0.2614, allocations: 11.98 kB / 412.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.2614, allocations: 0 / 412.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.2614, allocations: 0 / 412.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2614, allocations: 8 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2614, allocations: 3.938 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001336/0.2615, allocations: 176.2 kB / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.007e-05/0.2616, allocations: 89 kB / 413 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.2616, allocations: 4 kB / 413 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.09e-05/0.2617, allocations: 8 kB / 413 MB, free: 22.4 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.98e-05/0.2617, allocations: 3.984 kB / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.646e-06/0.2617, allocations: 0 / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.161e-05/0.2618, allocations: 103.3 kB / 413.1 MB, free: 22.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2618, allocations: 0 / 413.1 MB, free: 22.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002/0.262, allocations: 8 kB / 413.1 MB, free: 22.29 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.0002799/0.2623, allocations: 0.7131 MB / 413.8 MB, free: 21.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001197/0.2624, allocations: 32.34 kB / 413.9 MB, free: 21.51 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2624, allocations: 4.25 kB / 413.9 MB, free: 21.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.422e-05/0.2625, allocations: 11.98 kB / 413.9 MB, free: 21.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.2628, allocations: 22.44 kB / 413.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006382/0.2634, allocations: 0.5347 MB / 414.4 MB, free: 20.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.2636, allocations: 0.6965 MB / 415.1 MB, free: 20.15 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.887e-05/0.2636, allocations: 23.42 kB / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2636, allocations: 0 / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.555/2.819, allocations: 0.953 MB / 416.1 MB, free: 19.18 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time