Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001114/0.001115, allocations: 192.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 226.5 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008352/0.0008354, allocations: 90.03 kB / 296.7 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003237/0.0003242, allocations: 11.98 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2948, allocations: 51.28 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.001479/0.2963, allocations: 1.23 MB / 409.4 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003014/0.2967, allocations: 124.2 kB / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.249e-05/0.2967, allocations: 7.938 kB / 409.5 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.038e-05/0.2968, allocations: 0.5625 kB / 409.5 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.2969, allocations: 13.23 kB / 409.5 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002179/0.2971, allocations: 31.92 kB / 409.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.166e-05/0.2972, allocations: 39.84 kB / 409.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.4e-05/0.2973, allocations: 10.44 kB / 409.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.865e-05/0.2974, allocations: 7.938 kB / 409.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.99e-05/0.2974, allocations: 11.92 kB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.2974, allocations: 4 kB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.005e-05/0.2974, allocations: 0 / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.675e-05/0.2975, allocations: 13.38 kB / 409.6 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.362e-05/0.2975, allocations: 45.56 kB / 409.7 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.551e-05/0.2976, allocations: 31.94 kB / 409.7 MB, free: 26.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.2976, allocations: 0 / 409.7 MB, free: 26.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2976, allocations: 2.031 kB / 409.7 MB, free: 26.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.2976, allocations: 0 / 409.7 MB, free: 26.12 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.0003474/0.298, allocations: 360.5 kB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.298, allocations: 8.719 kB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.248e-05/0.2981, allocations: 34.73 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.643e-05/0.2981, allocations: 13.44 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.2983, allocations: 192.8 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-06/0.2983, allocations: 384 / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.091e-05/0.2983, allocations: 13.64 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.2986, allocations: 116 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.2986, allocations: 3.938 kB / 410.4 MB, free: 25.28 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.2986, allocations: 3.281 kB / 410.4 MB, free: 25.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.2986, allocations: 4 kB / 410.4 MB, free: 25.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.552e-05/0.2987, allocations: 23.92 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003151/0.299, allocations: 261.8 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.2992, allocations: 146.2 kB / 410.9 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.132e-05/0.2993, allocations: 29.77 kB / 410.9 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.2993, allocations: 0 / 410.9 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.978e-05/0.2993, allocations: 34.56 kB / 410.9 MB, free: 24.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.2994, allocations: 0 / 410.9 MB, free: 24.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002405/0.2996, allocations: 81.52 kB / 411 MB, free: 24.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.2997, allocations: 85.11 kB / 411.1 MB, free: 24.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.879e-05/0.2998, allocations: 139.1 kB / 411.2 MB, free: 24.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.668e-06/0.2998, allocations: 25.7 kB / 411.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.537e-05/0.2998, allocations: 88.14 kB / 411.3 MB, free: 24.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.032e-05/0.2998, allocations: 7.844 kB / 411.3 MB, free: 24.22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-06/0.2998, allocations: 0 / 411.3 MB, free: 24.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.745e-05/0.2999, allocations: 318.8 kB / 411.6 MB, free: 23.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.804e-05/0.3, allocations: 11.94 kB / 411.7 MB, free: 23.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.897e-05/0.3, allocations: 35.42 kB / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.6e-05/0.3001, allocations: 51.36 kB / 411.7 MB, free: 23.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3001, allocations: 11.94 kB / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001079/0.3002, allocations: 65.56 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.3002, allocations: 4 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3002, allocations: 4 kB / 411.8 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.3003, allocations: 0 / 411.8 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.993e-05/0.3003, allocations: 11.98 kB / 411.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.3003, allocations: 4.125 kB / 411.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.247e-05/0.3004, allocations: 4 kB / 411.8 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.3004, allocations: 4 kB / 411.8 MB, free: 23.67 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: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * 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.951e-05/0.3005, allocations: 125.7 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.729e-05/0.3005, allocations: 45.61 kB / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.388e-05/0.3006, allocations: 16.23 kB / 412 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3006, allocations: 0 / 412 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3006, allocations: 0 / 412 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.3006, allocations: 4 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.3007, allocations: 177.5 kB / 412.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3007, allocations: 336 / 412.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.548e-05/0.3008, allocations: 8 kB / 412.2 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.3008, allocations: 0 / 412.2 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.3008, allocations: 0 / 412.2 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3008, allocations: 3.984 kB / 412.2 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3008, allocations: 11.94 kB / 412.2 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.301, allocations: 172.2 kB / 412.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.789e-05/0.301, allocations: 93 kB / 412.5 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.301, allocations: 4 kB / 412.5 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.483e-05/0.3011, allocations: 3.984 kB / 412.5 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.577e-05/0.3011, allocations: 4 kB / 412.5 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.3011, allocations: 0 / 412.5 MB, free: 22.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.346e-05/0.3012, allocations: 104.1 kB / 412.6 MB, free: 22.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3012, allocations: 4 kB / 412.6 MB, free: 22.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002028/0.3014, allocations: 4 kB / 412.6 MB, free: 22.79 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: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * 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.0002879/0.3017, allocations: 0.7092 MB / 413.3 MB, free: 22.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001151/0.3018, allocations: 31.92 kB / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3018, allocations: 4 kB / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.035e-05/0.3018, allocations: 7.938 kB / 413.4 MB, free: 22.01 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.3022, allocations: 26.73 kB / 413.4 MB, free: 21.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000628/0.3028, allocations: 0.5088 MB / 413.9 MB, free: 21.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001441/0.303, allocations: 0.6848 MB / 414.6 MB, free: 20.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.016e-05/0.303, allocations: 15.42 kB / 414.6 MB, free: 20.69 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.303, allocations: 4 kB / 414.6 MB, free: 20.68 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.427/2.73, allocations: 0.8887 MB / 415.5 MB, free: 19.8 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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,step.height,step.offset,step.startTime,step.y,time