Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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-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.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00136/0.001359, allocations: 178.9 kB / 16.77 MB, free: 4.922 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.543/1.543, allocations: 205.4 MB / 222.9 MB, free: 8.941 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.0007958/0.0007958, allocations: 94.34 kB / 271.3 MB, free: 8.223 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.06986/0.06986, allocations: 12.59 MB / 332.1 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003771/0.0003771, allocations: 16 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07187/0.07226, allocations: 50.39 MB / 443 MB, free: 16.11 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.001235/0.07354, allocations: 1.132 MB / 444.1 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001372/0.07369, allocations: 31.86 kB / 444.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.617e-05/0.07374, allocations: 0 / 444.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.673e-05/0.07379, allocations: 3.984 kB / 444.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.018e-05/0.07383, allocations: 3.938 kB / 444.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002042/0.07404, allocations: 20 kB / 444.2 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.787e-05/0.0741, allocations: 27.92 kB / 444.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.348e-05/0.07419, allocations: 11.98 kB / 444.2 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.752e-05/0.07423, allocations: 11.98 kB / 444.2 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.63e-05/0.07427, allocations: 7.938 kB / 444.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.07429, allocations: 0 / 444.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.777e-06/0.0743, allocations: 0 / 444.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.379e-05/0.07432, allocations: 11.92 kB / 444.2 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.748e-05/0.07435, allocations: 33.64 kB / 444.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.847e-05/0.07441, allocations: 19.95 kB / 444.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.07442, allocations: 4 kB / 444.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.07442, allocations: 0 / 444.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.106e-06/0.07443, allocations: 4 kB / 444.3 MB, free: 14.77 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.0002804/0.07472, allocations: 343.7 kB / 444.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/0.07475, allocations: 8.031 kB / 444.6 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.549e-05/0.07478, allocations: 12.83 kB / 444.6 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.0749, allocations: 168.4 kB / 444.8 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.07492, allocations: 4.375 kB / 444.8 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.07494, allocations: 4.375 kB / 444.8 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.07523, allocations: 127.8 kB / 444.9 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.07525, allocations: 192 / 444.9 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.266e-06/0.07526, allocations: 3.938 kB / 444.9 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.07527, allocations: 0 / 444.9 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.07537, allocations: 23.98 kB / 445 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.166e-05/0.07547, allocations: 161.6 kB / 445.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001291/0.07561, allocations: 58.58 kB / 445.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.552e-05/0.07568, allocations: 36.77 kB / 445.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.358e-05/0.0757, allocations: 0 / 445.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/0.07573, allocations: 30.56 kB / 445.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.71e-07/0.07573, allocations: 0 / 445.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002275/0.07597, allocations: 85.59 kB / 445.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.07601, allocations: 51.41 kB / 445.4 MB, free: 13.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.119e-05/0.07606, allocations: 109.8 kB / 445.5 MB, free: 13.37 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.232e-06/0.07608, allocations: 29.7 kB / 445.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.697e-05/0.0761, allocations: 80.14 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.098e-05/0.07612, allocations: 7.984 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/0.07612, allocations: 7.938 kB / 445.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.523e-05/0.07616, allocations: 310.8 kB / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.013e-05/0.07618, allocations: 4 kB / 445.9 MB, free: 12.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.899e-05/0.0762, allocations: 31.42 kB / 446 MB, free: 12.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.257e-05/0.07624, allocations: 39.38 kB / 446 MB, free: 12.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.07625, allocations: 0 / 446 MB, free: 12.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.517e-05/0.07632, allocations: 65.53 kB / 446.1 MB, free: 12.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.07634, allocations: 7.938 kB / 446.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.07635, allocations: 12.05 kB / 446.1 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.07636, allocations: 4 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.191e-05/0.07642, allocations: 8 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.07643, allocations: 0 / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.758e-05/0.07645, allocations: 3.938 kB / 446.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-06/0.07646, allocations: 4 kB / 446.1 MB, free: 12.72 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 4.643e-05/0.07651, allocations: 118.5 kB / 446.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.07663, allocations: 69.56 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.891e-05/0.07666, allocations: 12.08 kB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.07667, allocations: 4 kB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.07668, allocations: 384 / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.07668, allocations: 3.984 kB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.548e-05/0.07673, allocations: 153.7 kB / 446.4 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.07674, allocations: 7.984 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.127e-05/0.0768, allocations: 8 kB / 446.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.07681, allocations: 0 / 446.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.07682, allocations: 7.938 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.07682, allocations: 3.938 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.07683, allocations: 0 / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000134/0.07697, allocations: 93.09 kB / 446.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.489e-05/0.07699, allocations: 88.98 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.07701, allocations: 7.938 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.91e-05/0.07704, allocations: 4 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.096e-06/0.07705, allocations: 3.984 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.07706, allocations: 0 / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.871e-05/0.07708, allocations: 79.28 kB / 446.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07709, allocations: 0 / 446.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000173/0.07727, allocations: 12 kB / 446.8 MB, free: 11.95 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 7.448e-05/0.07735, allocations: 95.25 kB / 446.8 MB, free: 11.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001079/0.07746, allocations: 31.91 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.07747, allocations: 0 / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.07748, allocations: 3.938 kB / 446.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/0.07773, allocations: 32.02 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002282/0.07797, allocations: 158.5 kB / 447.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.992e-05/0.07806, allocations: 0.6809 MB / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.953e-05/0.07808, allocations: 7.438 kB / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.07809, allocations: 0 / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of Templates: time 0.001431/0.07953, allocations: 0.6191 MB / 448.4 MB, free: 10.26 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches