Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001496/0.001496, allocations: 202.7 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.413/1.413, allocations: 226.5 MB / 244.7 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008146/0.0008144, allocations: 102.6 kB / 296.7 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002353/0.0002355, allocations: 12 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2202, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001301/0.2215, allocations: 1.21 MB / 409.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002647/0.2218, allocations: 135.6 kB / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.454e-05/0.2219, allocations: 0 / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.726e-05/0.2219, allocations: 0.875 kB / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.222, allocations: 11.92 kB / 409.5 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002008/0.2222, allocations: 27.91 kB / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.754e-05/0.2223, allocations: 29.14 kB / 409.5 MB, free: 26.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.631e-05/0.2224, allocations: 8.656 kB / 409.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.617e-05/0.2224, allocations: 11.88 kB / 409.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.849e-05/0.2225, allocations: 16.67 kB / 409.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.2225, allocations: 0 / 409.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.055e-05/0.2225, allocations: 5.188 kB / 409.6 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.095e-05/0.2225, allocations: 11.92 kB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.488e-05/0.2226, allocations: 37.58 kB / 409.6 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.239e-05/0.2226, allocations: 29.77 kB / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.2226, allocations: 0 / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2227, allocations: 0 / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.2227, allocations: 0 / 409.7 MB, free: 26.14 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.0003043/0.223, allocations: 357.5 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.223, allocations: 12.03 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.232e-05/0.223, allocations: 31.56 kB / 410.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.105e-05/0.2231, allocations: 8.844 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.2232, allocations: 193.3 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.33e-06/0.2232, allocations: 384 / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.142e-05/0.2232, allocations: 5.281 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001882/0.2234, allocations: 91.55 kB / 410.3 MB, free: 25.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.2234, allocations: 3.938 kB / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-06/0.2234, allocations: 7.719 kB / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.2235, allocations: 0 / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.364e-05/0.2235, allocations: 19.92 kB / 410.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002022/0.2237, allocations: 257.7 kB / 410.6 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.202e-05/0.2238, allocations: 57.06 kB / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.24e-05/0.2239, allocations: 21.78 kB / 410.7 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.732e-05/0.2239, allocations: 0 / 410.7 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.605e-05/0.2239, allocations: 38.56 kB / 410.7 MB, free: 24.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 7.82e-07/0.2239, allocations: 0 / 410.7 MB, free: 24.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001903/0.2241, allocations: 65.61 kB / 410.8 MB, free: 24.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.2241, allocations: 81.11 kB / 410.9 MB, free: 24.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.391e-05/0.2242, allocations: 130.8 kB / 411 MB, free: 24.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.554e-06/0.2242, allocations: 33.94 kB / 411 MB, free: 24.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.777e-05/0.2243, allocations: 92.05 kB / 411.1 MB, free: 24.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.814e-06/0.2243, allocations: 0 / 411.1 MB, free: 24.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/0.2243, allocations: 3.938 kB / 411.1 MB, free: 24.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.164e-05/0.2243, allocations: 314.8 kB / 411.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.567e-05/0.2244, allocations: 11.98 kB / 411.5 MB, free: 24.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.038e-05/0.2244, allocations: 21.72 kB / 411.5 MB, free: 24.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.207e-05/0.2245, allocations: 29.7 kB / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2245, allocations: 7.875 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.954e-05/0.2246, allocations: 61.69 kB / 411.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.427e-06/0.2246, allocations: 4 kB / 411.6 MB, free: 23.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.2246, allocations: 3.938 kB / 411.6 MB, free: 23.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.2246, allocations: 0 / 411.6 MB, free: 23.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.447e-05/0.2247, allocations: 11.98 kB / 411.6 MB, free: 23.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.2247, allocations: 0 / 411.6 MB, free: 23.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.572e-05/0.2247, allocations: 4 kB / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-06/0.2247, allocations: 0 / 411.6 MB, free: 23.93 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: 2 (step.y,sample1.y) * 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 4.922e-05/0.2248, allocations: 125.8 kB / 411.7 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.462e-05/0.2248, allocations: 41.55 kB / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.184e-05/0.2249, allocations: 7.875 kB / 411.8 MB, free: 23.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.2249, allocations: 4 kB / 411.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.2249, allocations: 0 / 411.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2249, allocations: 0 / 411.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.225, allocations: 165.6 kB / 411.9 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.225, allocations: 0 / 411.9 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.521e-05/0.225, allocations: 8 kB / 411.9 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2251, allocations: 0 / 411.9 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.2251, allocations: 8.016 kB / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2251, allocations: 0 / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2251, allocations: 0 / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.2252, allocations: 168.2 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.1e-05/0.2252, allocations: 89 kB / 412.2 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.018e-05/0.2252, allocations: 4.031 kB / 412.2 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.432e-05/0.2253, allocations: 4 kB / 412.2 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.554e-05/0.2253, allocations: 3.984 kB / 412.2 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.2253, allocations: 0 / 412.2 MB, free: 23.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.138e-05/0.2254, allocations: 104.1 kB / 412.3 MB, free: 23.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2254, allocations: 0 / 412.3 MB, free: 23.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001931/0.2256, allocations: 4 kB / 412.3 MB, free: 23.1 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: 2 (step.y,sample1.y) * 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.0002433/0.2258, allocations: 0.6898 MB / 413 MB, free: 22.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.751e-05/0.226, allocations: 32.02 kB / 413 MB, free: 22.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.226, allocations: 0 / 413 MB, free: 22.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.147e-05/0.226, allocations: 8 kB / 413.1 MB, free: 22.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.2263, allocations: 21.8 kB / 413.1 MB, free: 22.33 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005673/0.2269, allocations: 484.7 kB / 413.5 MB, free: 21.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001065/0.227, allocations: 0.6848 MB / 414.2 MB, free: 21.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.994e-05/0.227, allocations: 15.44 kB / 414.2 MB, free: 21.07 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.227, allocations: 0 / 414.2 MB, free: 21.07 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.566/2.793, allocations: 0.8391 MB / 415.1 MB, free: 20.24 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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,step.height,step.offset,step.startTime,step.y,time