Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.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.TickBasedStep,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 191.8 kB / 17.37 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, 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.0008358/0.0008357, allocations: 90.08 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.000292, allocations: 4 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2943, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.00139/0.2957, allocations: 1.141 MB / 409.3 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001654/0.2959, allocations: 20.44 kB / 409.3 MB, free: 26.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.779e-05/0.296, allocations: 10.03 kB / 409.3 MB, free: 26.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.43e-05/0.296, allocations: 3.984 kB / 409.3 MB, free: 26.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.966e-05/0.2961, allocations: 0 / 409.3 MB, free: 26.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002524/0.2963, allocations: 15.98 kB / 409.3 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.855e-05/0.2964, allocations: 23.92 kB / 409.3 MB, free: 26.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.82e-05/0.2965, allocations: 12.64 kB / 409.4 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.417e-05/0.2965, allocations: 15.86 kB / 409.4 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.348e-05/0.2966, allocations: 14.31 kB / 409.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.2966, allocations: 0 / 409.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.017e-06/0.2966, allocations: 0 / 409.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.546e-05/0.2966, allocations: 7.984 kB / 409.4 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.757e-05/0.2967, allocations: 33.64 kB / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.171e-05/0.2967, allocations: 11.97 kB / 409.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.2968, allocations: 8.641 kB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.2968, allocations: 0 / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.2968, allocations: 1.25 kB / 409.4 MB, free: 26.36 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000359/0.2971, allocations: 332.8 kB / 409.8 MB, free: 25.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.2972, allocations: 17.66 kB / 409.8 MB, free: 25.97 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.771e-05/0.2972, allocations: 30.75 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.416e-05/0.2973, allocations: 8.938 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.2974, allocations: 180.2 kB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.2974, allocations: 5.094 kB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.2975, allocations: 8.375 kB / 410 MB, free: 25.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003171/0.2978, allocations: 119.1 kB / 410.1 MB, free: 25.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.2978, allocations: 3.938 kB / 410.1 MB, free: 25.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.2978, allocations: 4 kB / 410.1 MB, free: 25.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.2978, allocations: 0 / 410.1 MB, free: 25.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.564e-05/0.2979, allocations: 15.98 kB / 410.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001078/0.2981, allocations: 161.7 kB / 410.3 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.2982, allocations: 54.48 kB / 410.4 MB, free: 25.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.493e-05/0.2983, allocations: 32.91 kB / 410.4 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.087e-05/0.2983, allocations: 0 / 410.4 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.716e-05/0.2983, allocations: 30.56 kB / 410.4 MB, free: 25.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.2983, allocations: 0 / 410.4 MB, free: 25.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002424/0.2986, allocations: 85.53 kB / 410.5 MB, free: 25.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.2986, allocations: 55.41 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.127e-05/0.2987, allocations: 101.8 kB / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.766e-06/0.2987, allocations: 29.7 kB / 410.7 MB, free: 24.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.258e-05/0.2987, allocations: 88.12 kB / 410.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.17e-05/0.2987, allocations: 0 / 410.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-06/0.2988, allocations: 0 / 410.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.598e-05/0.2988, allocations: 314.8 kB / 411.1 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/0.2988, allocations: 8 kB / 411.1 MB, free: 24.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.315e-05/0.2989, allocations: 31.42 kB / 411.1 MB, free: 24.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.712e-05/0.2989, allocations: 39.38 kB / 411.2 MB, free: 24.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2989, allocations: 0 / 411.2 MB, free: 24.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.542e-05/0.299, allocations: 61.62 kB / 411.2 MB, free: 24.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.299, allocations: 11.88 kB / 411.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.299, allocations: 7.938 kB / 411.2 MB, free: 24.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.299, allocations: 0 / 411.2 MB, free: 24.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.828e-05/0.2991, allocations: 7.938 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.2991, allocations: 0 / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.021e-05/0.2991, allocations: 8 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-06/0.2991, allocations: 0 / 411.3 MB, free: 24.3 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: 5 (step.counter,$CLKPRE.step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.356e-05/0.2992, allocations: 118 kB / 411.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.2993, allocations: 65.53 kB / 411.4 MB, free: 24.1 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.379e-05/0.2994, allocations: 15.42 kB / 411.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-06/0.2994, allocations: 0 / 411.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2994, allocations: 0 / 411.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.2994, allocations: 0 / 411.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.749e-05/0.2995, allocations: 153.7 kB / 411.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.2995, allocations: 0 / 411.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.064e-05/0.2995, allocations: 7.984 kB / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2995, allocations: 3.938 kB / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.333e-06/0.2995, allocations: 8 kB / 411.6 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2995, allocations: 384 / 411.6 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2995, allocations: 0 / 411.6 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001329/0.2997, allocations: 85.11 kB / 411.7 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.737e-05/0.2997, allocations: 81.02 kB / 411.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.2997, allocations: 11.94 kB / 411.8 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.727e-05/0.2997, allocations: 3.984 kB / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.454e-06/0.2998, allocations: 0 / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.2998, allocations: 8 kB / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.161e-05/0.2998, allocations: 87.22 kB / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2998, allocations: 0 / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001748/0.3, allocations: 4 kB / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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.0004141/0.3004, allocations: 0.6401 MB / 412.5 MB, free: 22.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.3005, allocations: 31.92 kB / 412.6 MB, free: 22.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3005, allocations: 0 / 412.6 MB, free: 22.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.3005, allocations: 3.938 kB / 412.6 MB, free: 22.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.3008, allocations: 31.39 kB / 412.6 MB, free: 22.81 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000495/0.3013, allocations: 423 kB / 413 MB, free: 22.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001386/0.3014, allocations: 0.677 MB / 413.7 MB, free: 21.63 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.609e-05/0.3015, allocations: 11.44 kB / 413.7 MB, free: 21.62 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.3015, allocations: 0 / 413.7 MB, free: 21.62 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.394/2.695, allocations: 0.7971 MB / 414.5 MB, free: 20.83 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedStep/TickBasedStep.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,previous(step.counter),step.counter,step.startTick,step.startValue,step.y,time