Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.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-master/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-master/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.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002338/0.002338, allocations: 186 kB / 16.44 MB, free: 5.691 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.968/1.968, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001203/0.001202, allocations: 82.98 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1007/0.1007, allocations: 12.6 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007477/0.0007482, allocations: 16 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0937/0.0945, allocations: 50.37 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4267/0.5212, allocations: 77.37 MB / 0.5075 GB, free: 12.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.5215, allocations: 74.19 kB / 0.5076 GB, free: 12.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001993/0.5235, allocations: 0.6996 MB / 0.5083 GB, free: 12.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5236, allocations: 0 / 0.5083 GB, free: 12.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.5236, allocations: 0 / 0.5083 GB, free: 12.52 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.0003081/0.5239, allocations: 336.1 kB / 0.5086 GB, free: 12.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.524, allocations: 11.47 kB / 0.5086 GB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.69e-05/0.524, allocations: 3.906 kB / 0.5086 GB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.5242, allocations: 177.2 kB / 0.5088 GB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.5242, allocations: 3.953 kB / 0.5088 GB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.5242, allocations: 6.562 kB / 0.5088 GB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003763/0.5246, allocations: 107.7 kB / 0.5089 GB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.5246, allocations: 4 kB / 0.5089 GB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.5247, allocations: 0 / 0.5089 GB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.5247, allocations: 0 / 0.5089 GB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.5248, allocations: 29.22 kB / 0.5089 GB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001269/0.525, allocations: 157 kB / 0.5091 GB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.5252, allocations: 60.75 kB / 0.5092 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.5252, allocations: 3.953 kB / 0.5092 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.5253, allocations: 34.22 kB / 0.5092 GB, free: 11.65 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.563e-06/0.5253, allocations: 0 / 0.5092 GB, free: 11.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002937/0.5256, allocations: 84.64 kB / 0.5093 GB, free: 11.6 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.5256, allocations: 55.25 kB / 0.5093 GB, free: 11.54 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.487e-05/0.5257, allocations: 104.8 kB / 0.5094 GB, free: 11.45 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.5257, allocations: 25.7 kB / 0.5094 GB, free: 11.42 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.352e-05/0.5258, allocations: 150.6 kB / 0.5096 GB, free: 11.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.065e-06/0.5258, allocations: 2.672 kB / 0.5096 GB, free: 11.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/0.5258, allocations: 3.125 kB / 0.5096 GB, free: 11.27 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.639e-05/0.5259, allocations: 310.8 kB / 0.5099 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.405e-05/0.5259, allocations: 7.875 kB / 0.5099 GB, free: 10.95 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.875e-05/0.5259, allocations: 29.55 kB / 0.5099 GB, free: 10.92 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.538e-05/0.526, allocations: 7.812 kB / 0.5099 GB, free: 10.92 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.526, allocations: 0 / 0.5099 GB, free: 10.92 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.869e-05/0.5261, allocations: 58.59 kB / 0.51 GB, free: 10.88 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.5261, allocations: 7.797 kB / 0.51 GB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5261, allocations: 7.906 kB / 0.51 GB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.5262, allocations: 3.938 kB / 0.51 GB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.409e-05/0.5262, allocations: 10.72 kB / 0.51 GB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.5263, allocations: 0 / 0.51 GB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.774e-05/0.5263, allocations: 0 / 0.51 GB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.954e-06/0.5263, allocations: 3.844 kB / 0.51 GB, free: 10.87 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: 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 7.042e-05/0.5264, allocations: 129.1 kB / 0.5101 GB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.5266, allocations: 65.36 kB / 0.5102 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.713e-05/0.5266, allocations: 7.859 kB / 0.5102 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.5266, allocations: 3.844 kB / 0.5102 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.5266, allocations: 3.141 kB / 0.5102 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.5267, allocations: 0 / 0.5102 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.891e-05/0.5267, allocations: 152.6 kB / 0.5104 GB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.5267, allocations: 0 / 0.5104 GB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.606e-05/0.5268, allocations: 10.83 kB / 0.5104 GB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.5269, allocations: 4 kB / 0.5104 GB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.5269, allocations: 0 / 0.5104 GB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.5269, allocations: 7.141 kB / 0.5104 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.5269, allocations: 0 / 0.5104 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/0.5271, allocations: 96.75 kB / 0.5105 GB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.632e-05/0.5271, allocations: 81.02 kB / 0.5106 GB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.5272, allocations: 4 kB / 0.5106 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.132e-05/0.5272, allocations: 3.844 kB / 0.5106 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-06/0.5272, allocations: 3.953 kB / 0.5106 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-06/0.5272, allocations: 0 / 0.5106 GB, free: 10.32 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.535e-05/0.5273, allocations: 85.3 kB / 0.5107 GB, free: 10.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.323e-06/0.5273, allocations: 0 / 0.5107 GB, free: 10.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002445/0.5275, allocations: 7.656 kB / 0.5107 GB, free: 10.24 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: 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 8.654e-05/0.5276, allocations: 94.66 kB / 0.5107 GB, free: 10.15 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.5278, allocations: 30.38 kB / 0.5108 GB, free: 10.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.5278, allocations: 0 / 0.5108 GB, free: 10.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.603e-06/0.5278, allocations: 0 / 0.5108 GB, free: 10.14 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002343/0.5281, allocations: 26.84 kB / 0.5108 GB, free: 10.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002913/0.5284, allocations: 149.9 kB / 0.5109 GB, free: 9.996 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001288/0.5285, allocations: 0.683 MB / 0.5116 GB, free: 9.301 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.213e-05/0.5286, allocations: 11.22 kB / 0.5116 GB, free: 9.297 MB / 330.7 MB Notification: Performance of SimCode: time 8.11e-07/0.5286, allocations: 0 / 0.5116 GB, free: 9.297 MB / 330.7 MB Notification: Performance of Templates: time 0.002085/0.5307, allocations: 0.538 MB / 0.5122 GB, free: 9.258 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches