Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008698/0.0008698, allocations: 180.5 kB / 17.46 MB, free: 4.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 205.4 MB / 223.6 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007635/0.0007636, allocations: 86.34 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06675/0.06675, allocations: 12.19 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003946/0.0003947, allocations: 16 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07257/0.07298, allocations: 50.28 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2444/0.3174, allocations: 77.28 MB / 0.5081 GB, free: 13.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.3176, allocations: 70.69 kB / 0.5082 GB, free: 13.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001459/0.3191, allocations: 0.7425 MB / 0.5089 GB, free: 12.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3191, allocations: 3.906 kB / 0.5089 GB, free: 12.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.3191, allocations: 0 / 0.5089 GB, free: 12.75 MB / 330.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.0002175/0.3193, allocations: 328.8 kB / 0.5092 GB, free: 12.4 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.3194, allocations: 13.62 kB / 0.5092 GB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.593e-05/0.3194, allocations: 4.781 kB / 0.5092 GB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.3195, allocations: 175.3 kB / 0.5094 GB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.3196, allocations: 3.188 kB / 0.5094 GB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-06/0.3196, allocations: 4.219 kB / 0.5094 GB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002624/0.3198, allocations: 122.6 kB / 0.5095 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.3199, allocations: 2.484 kB / 0.5095 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.3199, allocations: 3.938 kB / 0.5095 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.3199, allocations: 2.625 kB / 0.5095 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.311e-05/0.32, allocations: 23.08 kB / 0.5096 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.675e-05/0.3201, allocations: 156.4 kB / 0.5097 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.3202, allocations: 49.59 kB / 0.5097 GB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.182e-05/0.3203, allocations: 34.39 kB / 0.5098 GB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.304e-06/0.3203, allocations: 0 / 0.5098 GB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.369e-05/0.3203, allocations: 37.41 kB / 0.5098 GB, free: 11.87 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 7.82e-07/0.3203, allocations: 0 / 0.5098 GB, free: 11.87 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002432/0.3206, allocations: 75.42 kB / 0.5099 GB, free: 11.83 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/0.3206, allocations: 57.09 kB / 0.5099 GB, free: 11.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.362e-05/0.3207, allocations: 107.7 kB / 0.51 GB, free: 11.67 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.652e-06/0.3207, allocations: 25.7 kB / 0.5101 GB, free: 11.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.437e-05/0.3207, allocations: 87.52 kB / 0.5102 GB, free: 11.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.072e-05/0.3207, allocations: 0 / 0.5102 GB, free: 11.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-06/0.3207, allocations: 5.844 kB / 0.5102 GB, free: 11.55 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.035e-05/0.3208, allocations: 317.4 kB / 0.5105 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.009e-05/0.3208, allocations: 3.844 kB / 0.5105 GB, free: 11.24 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.219e-05/0.3208, allocations: 36.91 kB / 0.5105 GB, free: 11.2 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.472e-05/0.3208, allocations: 35.06 kB / 0.5105 GB, free: 11.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3209, allocations: 0 / 0.5105 GB, free: 11.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.344e-05/0.3209, allocations: 62.06 kB / 0.5106 GB, free: 11.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.3209, allocations: 6.656 kB / 0.5106 GB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3209, allocations: 3.938 kB / 0.5106 GB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.321, allocations: 7.969 kB / 0.5106 GB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.486e-05/0.321, allocations: 7.75 kB / 0.5106 GB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.321, allocations: 0 / 0.5106 GB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.944e-05/0.3211, allocations: 3.844 kB / 0.5106 GB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-06/0.3211, allocations: 3.984 kB / 0.5106 GB, free: 11.11 MB / 330.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 4.518e-05/0.3211, allocations: 121.6 kB / 0.5107 GB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.3212, allocations: 62.78 kB / 0.5108 GB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.845e-05/0.3213, allocations: 17.94 kB / 0.5108 GB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.3213, allocations: 4 kB / 0.5108 GB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.3213, allocations: 0 / 0.5108 GB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.3213, allocations: 0 / 0.5108 GB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.381e-05/0.3213, allocations: 154.2 kB / 0.511 GB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.3213, allocations: 2.766 kB / 0.511 GB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.719e-05/0.3214, allocations: 3.938 kB / 0.511 GB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.3214, allocations: 0 / 0.511 GB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.3214, allocations: 7.625 kB / 0.511 GB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3214, allocations: 0 / 0.511 GB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3214, allocations: 3.844 kB / 0.511 GB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000122/0.3215, allocations: 88.39 kB / 0.5111 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.351e-05/0.3215, allocations: 81.08 kB / 0.5111 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.3216, allocations: 7.219 kB / 0.5112 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.664e-05/0.3216, allocations: 3.906 kB / 0.5112 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.282e-06/0.3216, allocations: 0 / 0.5112 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-06/0.3216, allocations: 0 / 0.5112 GB, free: 10.58 MB / 330.7 MB Notification: Performance of sorting global known variables: time 1.965e-05/0.3216, allocations: 85.62 kB / 0.5112 GB, free: 10.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3216, allocations: 0 / 0.5112 GB, free: 10.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001792/0.3218, allocations: 3.875 kB / 0.5112 GB, free: 10.5 MB / 330.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 6.188e-05/0.3219, allocations: 101.9 kB / 0.5113 GB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001016/0.322, allocations: 26.06 kB / 0.5114 GB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.322, allocations: 0 / 0.5114 GB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.81e-07/0.322, allocations: 0 / 0.5114 GB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002105/0.3222, allocations: 30.78 kB / 0.5114 GB, free: 10.4 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002239/0.3225, allocations: 155.2 kB / 0.5115 GB, free: 10.25 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.695e-05/0.3226, allocations: 0.6795 MB / 0.5122 GB, free: 9.555 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.831e-05/0.3226, allocations: 11.38 kB / 0.5122 GB, free: 9.543 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3226, allocations: 3.875 kB / 0.5122 GB, free: 9.543 MB / 330.7 MB Notification: Performance of Templates: time 0.00144/0.324, allocations: 0.5861 MB / 0.5128 GB, free: 9.496 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches