Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.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.TimeBasedStep,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001192/0.001192, allocations: 195.9 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 226.5 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009668/0.0009668, allocations: 99.52 kB / 296.7 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.0003981, allocations: 4 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.336, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep): time 0.001778/0.3379, allocations: 1.148 MB / 409.3 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003119/0.3382, allocations: 87.78 kB / 409.4 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.182e-05/0.3383, allocations: 0 / 409.4 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.78e-05/0.3384, allocations: 12.77 kB / 409.4 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.139e-05/0.3385, allocations: 3.984 kB / 409.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003452/0.3388, allocations: 19.25 kB / 409.4 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001004/0.3389, allocations: 23.86 kB / 409.4 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.3391, allocations: 11.98 kB / 409.4 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.48e-05/0.3391, allocations: 7.984 kB / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.057e-05/0.3392, allocations: 8.594 kB / 409.5 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.3392, allocations: 4 kB / 409.5 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.145e-05/0.3392, allocations: 0.6875 kB / 409.5 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.661e-05/0.3393, allocations: 0 / 409.5 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.078e-05/0.3393, allocations: 38.45 kB / 409.5 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.644e-05/0.3394, allocations: 15.97 kB / 409.5 MB, free: 26.31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.3394, allocations: 6.484 kB / 409.5 MB, free: 26.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.3394, allocations: 0 / 409.5 MB, free: 26.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.3394, allocations: 3.938 kB / 409.5 MB, free: 26.3 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.0004653/0.3399, allocations: 336.7 kB / 409.8 MB, free: 25.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.34, allocations: 12.03 kB / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.667e-05/0.34, allocations: 31.38 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.859e-05/0.34, allocations: 5.719 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.3402, allocations: 184.2 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.3403, allocations: 1.156 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.644e-05/0.3403, allocations: 4.375 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003124/0.3406, allocations: 102.3 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.3406, allocations: 6.688 kB / 410.2 MB, free: 25.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.3406, allocations: 0 / 410.2 MB, free: 25.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.3407, allocations: 4 kB / 410.2 MB, free: 25.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.304e-05/0.3407, allocations: 19.92 kB / 410.2 MB, free: 25.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001584/0.3409, allocations: 157.7 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001394/0.341, allocations: 49.47 kB / 410.4 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.465e-05/0.3411, allocations: 24.92 kB / 410.4 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.3411, allocations: 0 / 410.4 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.3412, allocations: 34.56 kB / 410.5 MB, free: 25.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.3412, allocations: 0 / 410.5 MB, free: 25.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002197/0.3414, allocations: 73.73 kB / 410.5 MB, free: 25.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.3415, allocations: 51.41 kB / 410.6 MB, free: 25.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.152e-05/0.3415, allocations: 105.8 kB / 410.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.3416, allocations: 25.7 kB / 410.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.11e-05/0.3416, allocations: 88.12 kB / 410.8 MB, free: 24.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.085e-06/0.3416, allocations: 8 kB / 410.8 MB, free: 24.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-06/0.3416, allocations: 0 / 410.8 MB, free: 24.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.317e-05/0.3417, allocations: 314.8 kB / 411.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.176e-05/0.3417, allocations: 0 / 411.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.557e-05/0.3417, allocations: 31.41 kB / 411.2 MB, free: 24.44 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.797e-05/0.3418, allocations: 39.38 kB / 411.2 MB, free: 24.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.3418, allocations: 0 / 411.2 MB, free: 24.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.159e-05/0.3419, allocations: 57.81 kB / 411.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.3419, allocations: 7.938 kB / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3419, allocations: 4 kB / 411.3 MB, free: 24.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.3419, allocations: 0 / 411.3 MB, free: 24.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.474e-05/0.342, allocations: 12.06 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.342, allocations: 4 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.018e-05/0.342, allocations: 0 / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.3421, allocations: 8 kB / 411.3 MB, free: 24.29 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: 3 (assignClock1.y,assignClock1.u,step.y) * 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 8.646e-05/0.3421, allocations: 109.8 kB / 411.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.143e-05/0.3422, allocations: 61.56 kB / 411.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.909e-05/0.3423, allocations: 7.484 kB / 411.5 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3423, allocations: 0 / 411.5 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.3423, allocations: 7.938 kB / 411.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3423, allocations: 0 / 411.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.775e-05/0.3424, allocations: 157.6 kB / 411.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3424, allocations: 0 / 411.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.073e-05/0.3424, allocations: 4 kB / 411.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3424, allocations: 3.938 kB / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/0.3424, allocations: 0 / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3425, allocations: 0 / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3425, allocations: 3.984 kB / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001209/0.3426, allocations: 81.12 kB / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.123e-05/0.3426, allocations: 85.05 kB / 411.8 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.3427, allocations: 3.938 kB / 411.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.961e-05/0.3427, allocations: 4 kB / 411.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.392e-06/0.3427, allocations: 0 / 411.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.3427, allocations: 7.938 kB / 411.8 MB, free: 23.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.035e-05/0.3427, allocations: 83.27 kB / 411.9 MB, free: 23.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3427, allocations: 0 / 411.9 MB, free: 23.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001895/0.3429, allocations: 0 / 411.9 MB, free: 23.57 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: 3 (step.y,assignClock1.u,assignClock1.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.0003578/0.3433, allocations: 0.6241 MB / 412.5 MB, free: 22.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001172/0.3434, allocations: 23.94 kB / 412.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3434, allocations: 4.25 kB / 412.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.72e-07/0.3435, allocations: 0 / 412.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.3437, allocations: 23.98 kB / 412.6 MB, free: 22.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005589/0.3443, allocations: 404.9 kB / 413 MB, free: 22.4 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001454/0.3444, allocations: 0.6809 MB / 413.6 MB, free: 21.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.556e-05/0.3445, allocations: 11.44 kB / 413.7 MB, free: 21.68 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3445, allocations: 0 / 413.7 MB, free: 21.68 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.429/2.773, allocations: 0.7507 MB / 414.4 MB, free: 20.94 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TimeBasedStep/TimeBasedStep.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.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,step.simTime,step.startTime,step.startValue,step.y,time