Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.001187/0.001187, 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.421/1.421, allocations: 226.5 MB / 244.7 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009623/0.0009622, allocations: 95.14 kB / 296.7 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003165/0.0003165, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3045, allocations: 51.31 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked): time 0.001626/0.3062, allocations: 1.195 MB / 409.3 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003155/0.3066, allocations: 133 kB / 409.5 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.026e-05/0.3066, allocations: 3.938 kB / 409.5 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.165e-05/0.3067, allocations: 0 / 409.5 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.3068, allocations: 15.92 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002385/0.3071, allocations: 25.66 kB / 409.5 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.301e-05/0.3072, allocations: 31.86 kB / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.625e-05/0.3073, allocations: 8 kB / 409.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.946e-05/0.3073, allocations: 4.531 kB / 409.6 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.43e-05/0.3074, allocations: 14.02 kB / 409.6 MB, free: 26.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.3074, allocations: 0 / 409.6 MB, free: 26.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.142e-05/0.3074, allocations: 3.938 kB / 409.6 MB, free: 26.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.53e-05/0.3074, allocations: 8 kB / 409.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.298e-05/0.3075, allocations: 45.56 kB / 409.6 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.827e-05/0.3075, allocations: 23.95 kB / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3076, allocations: 2.031 kB / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3076, allocations: 0 / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.3076, allocations: 0 / 409.6 MB, free: 26.18 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.0004227/0.308, allocations: 348.5 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.3081, allocations: 12.66 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.773e-05/0.3081, allocations: 35.38 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.844e-05/0.3081, allocations: 8.844 kB / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.3083, allocations: 187.7 kB / 410.2 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.3083, allocations: 11.45 kB / 410.2 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.3083, allocations: 4.375 kB / 410.2 MB, free: 25.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002097/0.3085, allocations: 81.62 kB / 410.3 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.3086, allocations: 3.938 kB / 410.3 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.3086, allocations: 6.562 kB / 410.3 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.3086, allocations: 3.984 kB / 410.3 MB, free: 25.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.291e-05/0.3087, allocations: 11.98 kB / 410.3 MB, free: 25.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002705/0.3089, allocations: 265.8 kB / 410.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.705e-05/0.309, allocations: 45.14 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.287e-05/0.309, allocations: 17.78 kB / 410.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.3091, allocations: 0 / 410.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.3091, allocations: 42.5 kB / 410.7 MB, free: 24.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.3091, allocations: 0 / 410.7 MB, free: 24.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001895/0.3093, allocations: 61.53 kB / 410.8 MB, free: 24.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.3094, allocations: 81.09 kB / 410.9 MB, free: 24.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.76e-05/0.3094, allocations: 129.8 kB / 411 MB, free: 24.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.606e-06/0.3095, allocations: 29.95 kB / 411 MB, free: 24.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.63e-05/0.3095, allocations: 88.14 kB / 411.1 MB, free: 24.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.328e-06/0.3095, allocations: 7.906 kB / 411.1 MB, free: 24.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-06/0.3095, allocations: 0 / 411.1 MB, free: 24.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.444e-05/0.3096, allocations: 314.8 kB / 411.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.786e-05/0.3096, allocations: 7.984 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.331e-05/0.3097, allocations: 17.72 kB / 411.4 MB, free: 24.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.918e-05/0.3097, allocations: 29.66 kB / 411.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3097, allocations: 7.938 kB / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.833e-05/0.3098, allocations: 45.69 kB / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.3099, allocations: 4 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.3099, allocations: 4 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.3099, allocations: 4.062 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-05/0.3099, allocations: 3.984 kB / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.3099, allocations: 3.938 kB / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.592e-05/0.3099, allocations: 4 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.31, allocations: 0 / 411.5 MB, free: 24.02 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 (sample1.u,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 6.232e-05/0.31, allocations: 117.8 kB / 411.7 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.746e-05/0.3101, allocations: 41.59 kB / 411.7 MB, free: 23.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.712e-05/0.3101, allocations: 7.531 kB / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3101, allocations: 8.031 kB / 411.7 MB, free: 23.83 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3101, allocations: 4 kB / 411.7 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.3101, allocations: 0 / 411.7 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001236/0.3103, allocations: 169.6 kB / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.3103, allocations: 0 / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.249e-06/0.3103, allocations: 0 / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3103, allocations: 4 kB / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.3103, allocations: 0 / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.3103, allocations: 0 / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3103, allocations: 3.938 kB / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001118/0.3104, allocations: 152.3 kB / 412 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.178e-05/0.3105, allocations: 93 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.3105, allocations: 4 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.029e-05/0.3106, allocations: 0 / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.213e-05/0.3106, allocations: 0 / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.3106, allocations: 4 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.237e-05/0.3107, allocations: 107.3 kB / 412.2 MB, free: 23.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3107, allocations: 0 / 412.2 MB, free: 23.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001984/0.3109, allocations: 4 kB / 412.2 MB, free: 23.21 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 (sample1.u,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.0003126/0.3112, allocations: 0.6897 MB / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.789e-05/0.3113, allocations: 15.98 kB / 412.9 MB, free: 22.47 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.3113, allocations: 0 / 412.9 MB, free: 22.47 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.425e-05/0.3113, allocations: 7.938 kB / 413 MB, free: 22.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.3117, allocations: 23.89 kB / 413 MB, free: 22.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006007/0.3123, allocations: 461.2 kB / 413.4 MB, free: 21.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001453/0.3124, allocations: 0.6848 MB / 414.1 MB, free: 21.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.37e-05/0.3125, allocations: 15.44 kB / 414.1 MB, free: 21.21 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3125, allocations: 0 / 414.1 MB, free: 21.21 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.56/2.872, allocations: 0.8182 MB / 414.9 MB, free: 20.4 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SampleClocked/SampleClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.startTime,step.startValue,step.y,time