Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 98.25 kB / 16.02 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 200.2 kB / 16.95 MB, free: 6.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.701/1.701, allocations: 205.1 MB / 222.8 MB, free: 12.45 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08689/0.08689, allocations: 12.58 MB / 282.7 MB, free: 15.64 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 88.77 kB / 343 MB, free: 3.309 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2903, allocations: 49.39 MB / 392.4 MB, free: 49.12 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002524/0.2929, allocations: 1.482 MB / 393.9 MB, free: 48.11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001658/0.293, allocations: 26 kB / 393.9 MB, free: 48.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.644e-05/0.2931, allocations: 3.938 kB / 393.9 MB, free: 48.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.353e-05/0.2931, allocations: 2.172 kB / 393.9 MB, free: 48.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.467e-05/0.2932, allocations: 3.984 kB / 393.9 MB, free: 48.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.2935, allocations: 17.98 kB / 393.9 MB, free: 48.08 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.302e-05/0.2935, allocations: 30.23 kB / 393.9 MB, free: 48.06 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.2936, allocations: 15.62 kB / 393.9 MB, free: 48.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.6e-05/0.2937, allocations: 13 kB / 394 MB, free: 48.05 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.795e-05/0.2937, allocations: 15.64 kB / 394 MB, free: 48.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.563e-05/0.2938, allocations: 1.438 kB / 394 MB, free: 48.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.091e-05/0.2938, allocations: 6.625 kB / 394 MB, free: 48.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.807e-05/0.2938, allocations: 7.219 kB / 394 MB, free: 48.03 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.497e-05/0.2938, allocations: 15.19 kB / 394 MB, free: 48.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.209e-05/0.2939, allocations: 26.56 kB / 394 MB, free: 48.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2939, allocations: 13.34 kB / 394 MB, free: 48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2939, allocations: 0 / 394 MB, free: 48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.294, allocations: 0 / 394 MB, free: 48 MB / 318.1 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.0003595/0.2943, allocations: 344.1 kB / 394.4 MB, free: 47.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.2944, allocations: 9.438 kB / 394.4 MB, free: 47.63 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.51e-05/0.2944, allocations: 7.391 kB / 394.4 MB, free: 47.63 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.2945, allocations: 177.4 kB / 394.6 MB, free: 47.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.2946, allocations: 2.625 kB / 394.6 MB, free: 47.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.2946, allocations: 2.375 kB / 394.6 MB, free: 47.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003271/0.2949, allocations: 124.5 kB / 394.7 MB, free: 47.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.2949, allocations: 5.438 kB / 394.7 MB, free: 47.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-06/0.2949, allocations: 3.938 kB / 394.7 MB, free: 47.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2949, allocations: 1.219 kB / 394.7 MB, free: 47.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001144/0.2951, allocations: 28.5 kB / 394.7 MB, free: 47.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.876e-05/0.2952, allocations: 156.9 kB / 394.9 MB, free: 47.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001537/0.2953, allocations: 61.48 kB / 394.9 MB, free: 47.11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.537e-05/0.2954, allocations: 26.77 kB / 395 MB, free: 47.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.2954, allocations: 1.094 kB / 395 MB, free: 47.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.493e-05/0.2955, allocations: 31.17 kB / 395 MB, free: 47.05 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.2955, allocations: 1.219 kB / 395 MB, free: 47.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002908/0.2958, allocations: 83.52 kB / 395.1 MB, free: 47.01 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.2958, allocations: 62.61 kB / 395.1 MB, free: 46.94 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.809e-05/0.2959, allocations: 105.1 kB / 395.3 MB, free: 46.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.007e-05/0.2959, allocations: 25.7 kB / 395.3 MB, free: 46.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.852e-05/0.2959, allocations: 86.23 kB / 395.4 MB, free: 46.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.296, allocations: 5.922 kB / 395.4 MB, free: 46.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/0.296, allocations: 19.5 kB / 395.4 MB, free: 46.7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.822e-05/0.2961, allocations: 313.6 kB / 395.7 MB, free: 46.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.529e-05/0.2961, allocations: 3.219 kB / 395.7 MB, free: 46.38 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.9e-05/0.2961, allocations: 35.03 kB / 395.7 MB, free: 46.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.228e-05/0.2962, allocations: 38.88 kB / 395.8 MB, free: 46.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2962, allocations: 1.781 kB / 395.8 MB, free: 46.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.26e-05/0.2963, allocations: 69.72 kB / 395.8 MB, free: 46.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.2963, allocations: 1.969 kB / 395.8 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.2963, allocations: 7.953 kB / 395.8 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.2963, allocations: 0 / 395.8 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.903e-05/0.2964, allocations: 8.109 kB / 395.9 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.2964, allocations: 1.188 kB / 395.9 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.088e-05/0.2964, allocations: 6.734 kB / 395.9 MB, free: 46.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-06/0.2964, allocations: 2.125 kB / 395.9 MB, free: 46.24 MB / 318.1 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 ($CLKPRE.step.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.266e-05/0.2965, allocations: 117.9 kB / 396 MB, free: 46.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.2967, allocations: 71.86 kB / 396.1 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.628e-05/0.2967, allocations: 14.22 kB / 396.1 MB, free: 46.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.2967, allocations: 1.5 kB / 396.1 MB, free: 46.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.2967, allocations: 0 / 396.1 MB, free: 46.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2967, allocations: 0.6094 kB / 396.1 MB, free: 46.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.707e-05/0.2968, allocations: 159.4 kB / 396.2 MB, free: 45.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.2968, allocations: 1.125 kB / 396.2 MB, free: 45.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.902e-05/0.2969, allocations: 10.28 kB / 396.2 MB, free: 45.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.2969, allocations: 0 / 396.2 MB, free: 45.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.2969, allocations: 9.75 kB / 396.2 MB, free: 45.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.2969, allocations: 4 kB / 396.2 MB, free: 45.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2969, allocations: 5.109 kB / 396.3 MB, free: 45.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001684/0.2971, allocations: 90.56 kB / 396.3 MB, free: 45.78 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.582e-05/0.2971, allocations: 83 kB / 396.4 MB, free: 45.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.2971, allocations: 10.69 kB / 396.4 MB, free: 45.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.08e-05/0.2972, allocations: 3.672 kB / 396.4 MB, free: 45.67 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.047e-06/0.2972, allocations: 0.7969 kB / 396.4 MB, free: 45.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.2972, allocations: 5.156 kB / 396.4 MB, free: 45.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.524e-05/0.2972, allocations: 82.67 kB / 396.5 MB, free: 45.59 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2973, allocations: 0 / 396.5 MB, free: 45.59 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001829/0.2974, allocations: 8.531 kB / 396.5 MB, free: 45.59 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.903e-05/0.2975, allocations: 92.41 kB / 396.6 MB, free: 45.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001503/0.2977, allocations: 31.83 kB / 396.7 MB, free: 45.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2977, allocations: 1.344 kB / 396.7 MB, free: 45.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.31e-07/0.2977, allocations: 4.25 kB / 396.7 MB, free: 45.49 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.298, allocations: 32.38 kB / 396.7 MB, free: 45.48 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002965/0.2983, allocations: 122.6 kB / 396.8 MB, free: 45.37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.2985, allocations: 0.6843 MB / 397.5 MB, free: 44.67 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.399e-05/0.2985, allocations: 2.672 kB / 397.5 MB, free: 44.67 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.353e-05/0.2985, allocations: 8.781 kB / 397.5 MB, free: 44.66 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2985, allocations: 5.156 kB / 397.5 MB, free: 44.66 MB / 318.1 MB Notification: Performance of Templates: time 0.00254/0.3011, allocations: 442 kB / 397.9 MB, free: 44.59 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches