Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001477/0.001477, allocations: 198.7 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.388/1.388, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000928/0.000928, allocations: 103.3 kB / 296.7 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003211, allocations: 8 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2969, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.001479/0.2985, allocations: 1.265 MB / 409.4 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006459/0.2991, allocations: 476.6 kB / 409.9 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.371e-05/0.2992, allocations: 4 kB / 409.9 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.607e-05/0.2993, allocations: 0 / 409.9 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001501/0.2994, allocations: 5.719 kB / 409.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002683/0.2997, allocations: 47.77 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.894e-05/0.2998, allocations: 39.86 kB / 410 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.2999, allocations: 5.812 kB / 410 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.3, allocations: 23.91 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.933e-05/0.3001, allocations: 19.86 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.3001, allocations: 0.5938 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.541e-05/0.3002, allocations: 8 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.555e-05/0.3002, allocations: 4.75 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.813e-05/0.3003, allocations: 49.5 kB / 410.1 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.113e-05/0.3004, allocations: 34.09 kB / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/0.3004, allocations: 4 kB / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3004, allocations: 0 / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.526e-06/0.3004, allocations: 0 / 410.1 MB, free: 25.7 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003568/0.3008, allocations: 353.3 kB / 410.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.3008, allocations: 8.031 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.511e-05/0.3008, allocations: 39.62 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.301, allocations: 21.8 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001898/0.3012, allocations: 188.1 kB / 410.7 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.3012, allocations: 1.312 kB / 410.7 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.3012, allocations: 8.375 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002348/0.3015, allocations: 92.17 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.3015, allocations: 0 / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.3015, allocations: 7.938 kB / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3015, allocations: 2.625 kB / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.487e-05/0.3016, allocations: 23.92 kB / 410.8 MB, free: 24.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000265/0.3019, allocations: 265.8 kB / 411.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.639e-05/0.3019, allocations: 41.16 kB / 411.1 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.367e-05/0.302, allocations: 25.77 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.302, allocations: 0 / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.684e-05/0.302, allocations: 38.56 kB / 411.2 MB, free: 24.42 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.302, allocations: 0 / 411.2 MB, free: 24.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002105/0.3022, allocations: 77.52 kB / 411.3 MB, free: 24.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.3023, allocations: 77.36 kB / 411.4 MB, free: 24.24 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.448e-05/0.3024, allocations: 144.1 kB / 411.5 MB, free: 24.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.655e-06/0.3024, allocations: 25.7 kB / 411.5 MB, free: 24.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.371e-05/0.3024, allocations: 88.12 kB / 411.6 MB, free: 23.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.342e-05/0.3025, allocations: 11.84 kB / 411.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-06/0.3025, allocations: 0 / 411.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.836e-05/0.3025, allocations: 318.8 kB / 411.9 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.268e-05/0.3026, allocations: 11.98 kB / 411.9 MB, free: 23.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.845e-05/0.3026, allocations: 21.72 kB / 412 MB, free: 23.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.692e-05/0.3027, allocations: 33.7 kB / 412 MB, free: 23.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3027, allocations: 3.938 kB / 412 MB, free: 23.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001064/0.3028, allocations: 65.67 kB / 412.1 MB, free: 23.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3029, allocations: 8 kB / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3029, allocations: 0 / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.3029, allocations: 0 / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.342e-05/0.303, allocations: 4 kB / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.303, allocations: 0 / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.36e-05/0.303, allocations: 8 kB / 412.1 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.3031, allocations: 4 kB / 412.1 MB, free: 23.46 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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.916e-05/0.3031, allocations: 125.8 kB / 412.2 MB, free: 23.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.825e-05/0.3032, allocations: 41.53 kB / 412.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.96e-05/0.3032, allocations: 15.86 kB / 412.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.3032, allocations: 0 / 412.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3032, allocations: 4 kB / 412.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.3032, allocations: 0 / 412.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.3034, allocations: 173.6 kB / 412.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3034, allocations: 3.938 kB / 412.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.314e-05/0.3034, allocations: 8.031 kB / 412.5 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.3034, allocations: 4 kB / 412.5 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.3035, allocations: 0 / 412.5 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3035, allocations: 0 / 412.5 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3035, allocations: 0 / 412.5 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000135/0.3036, allocations: 176.2 kB / 412.6 MB, free: 22.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.926e-05/0.3037, allocations: 89 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.3037, allocations: 0 / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.283e-05/0.3037, allocations: 4 kB / 412.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.754e-05/0.3038, allocations: 3.984 kB / 412.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.3038, allocations: 4 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.558e-05/0.3038, allocations: 102.1 kB / 412.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3038, allocations: 4 kB / 412.8 MB, free: 22.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001999/0.304, allocations: 8 kB / 412.8 MB, free: 22.61 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 (2): * Single equations (assignments): 2 * 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.0002986/0.3044, allocations: 0.7014 MB / 413.5 MB, free: 21.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001193/0.3045, allocations: 24.02 kB / 413.6 MB, free: 21.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3045, allocations: 4 kB / 413.6 MB, free: 21.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.426e-05/0.3045, allocations: 11.98 kB / 413.6 MB, free: 21.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.3049, allocations: 10.61 kB / 413.6 MB, free: 21.83 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006551/0.3055, allocations: 0.5123 MB / 414.1 MB, free: 21.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.3057, allocations: 0.6888 MB / 414.8 MB, free: 20.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.764e-05/0.3057, allocations: 23.36 kB / 414.8 MB, free: 20.52 MB / 298.7 MB Notification: Performance of SimCode: time 7.11e-07/0.3057, allocations: 0 / 414.8 MB, free: 20.52 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.615/2.921, allocations: 0.8915 MB / 415.7 MB, free: 19.63 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y Variables in the result: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