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.0008703/0.0008703, allocations: 176.5 kB / 16.45 MB, free: 5.684 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.298/1.298, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007209/0.000721, allocations: 97.11 kB / 270.9 MB, free: 8.34 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.069/0.069, allocations: 12.6 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004038/0.000404, allocations: 12 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07042/0.07084, allocations: 50.37 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001141/0.07203, allocations: 1.148 MB / 443.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002033/0.07224, allocations: 95.77 kB / 443.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.088e-05/0.07231, allocations: 0 / 443.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.242e-05/0.07233, allocations: 0 / 443.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.432e-05/0.07237, allocations: 3.938 kB / 443.6 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.07258, allocations: 23.97 kB / 443.6 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.848e-05/0.07265, allocations: 23.94 kB / 443.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.367e-05/0.07273, allocations: 7.984 kB / 443.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.445e-05/0.07276, allocations: 7.938 kB / 443.7 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.816e-05/0.0728, allocations: 11.94 kB / 443.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.07282, allocations: 0 / 443.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.806e-06/0.07284, allocations: 4 kB / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.17e-05/0.07285, allocations: 3.984 kB / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.404e-05/0.07288, allocations: 33.64 kB / 443.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.734e-05/0.07294, allocations: 23.89 kB / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.07295, allocations: 0 / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.07295, allocations: 0 / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.397e-06/0.07296, allocations: 0 / 443.8 MB, free: 15.05 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.0002985/0.07326, allocations: 339.5 kB / 444.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.0733, allocations: 8.031 kB / 444.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.821e-05/0.07334, allocations: 11.84 kB / 444.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.07346, allocations: 171.1 kB / 444.3 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.07348, allocations: 0 / 444.3 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.063e-05/0.0735, allocations: 7.953 kB / 444.3 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/0.07378, allocations: 115.3 kB / 444.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.0738, allocations: 0 / 444.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.07381, allocations: 0 / 444.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.07382, allocations: 0 / 444.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.369e-05/0.0739, allocations: 23.92 kB / 444.4 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.582e-05/0.074, allocations: 157.7 kB / 444.6 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/0.07413, allocations: 62.53 kB / 444.6 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.139e-05/0.07419, allocations: 28.92 kB / 444.7 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.07422, allocations: 3.953 kB / 444.7 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.439e-05/0.07424, allocations: 34.56 kB / 444.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.07424, allocations: 0 / 444.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001805/0.07443, allocations: 81.52 kB / 444.8 MB, free: 13.85 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/0.07446, allocations: 51.41 kB / 444.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.029e-05/0.07452, allocations: 105.8 kB / 444.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.352e-06/0.07453, allocations: 25.7 kB / 445 MB, free: 13.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.864e-05/0.07456, allocations: 92.14 kB / 445 MB, free: 13.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.368e-06/0.07457, allocations: 0 / 445 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.974e-06/0.07457, allocations: 0 / 445 MB, free: 13.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.016e-05/0.07462, allocations: 318.8 kB / 445.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.476e-06/0.07463, allocations: 4 kB / 445.4 MB, free: 13.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.654e-05/0.07466, allocations: 23.44 kB / 445.4 MB, free: 13.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.862e-05/0.07468, allocations: 12 kB / 445.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.07469, allocations: 3.938 kB / 445.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.746e-05/0.07475, allocations: 53.62 kB / 445.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.07477, allocations: 7.953 kB / 445.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.07477, allocations: 0 / 445.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.07479, allocations: 4 kB / 445.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.191e-05/0.07484, allocations: 8.234 kB / 445.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.07485, allocations: 8.125 kB / 445.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.976e-05/0.07487, allocations: 11.84 kB / 445.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.456e-06/0.07488, allocations: 4 kB / 445.5 MB, free: 13.07 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 4.873e-05/0.07493, allocations: 122.4 kB / 445.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.817e-05/0.07503, allocations: 61.62 kB / 445.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.674e-05/0.07506, allocations: 15.84 kB / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.07507, allocations: 0 / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.07509, allocations: 4 kB / 445.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.0751, allocations: 0 / 445.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.108e-05/0.07515, allocations: 153.7 kB / 445.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.07516, allocations: 0 / 445.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.892e-05/0.07522, allocations: 11.98 kB / 445.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.634e-06/0.07522, allocations: 0 / 445.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-06/0.07524, allocations: 4 kB / 445.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.07524, allocations: 3.953 kB / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.07525, allocations: 0 / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001077/0.07536, allocations: 96.95 kB / 446 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.491e-05/0.07538, allocations: 77.11 kB / 446 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.999e-06/0.0754, allocations: 0 / 446 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.446e-05/0.07543, allocations: 4 kB / 446 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.825e-06/0.07544, allocations: 4.328 kB / 446 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.07544, allocations: 0 / 446 MB, free: 12.42 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.136e-05/0.07547, allocations: 91.27 kB / 446.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.07548, allocations: 0 / 446.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000159/0.07564, allocations: 4 kB / 446.1 MB, free: 12.32 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 5.544e-05/0.0757, allocations: 99.25 kB / 446.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.265e-05/0.0758, allocations: 27.92 kB / 446.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.07581, allocations: 0 / 446.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.07581, allocations: 0 / 446.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001856/0.076, allocations: 32.22 kB / 446.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001885/0.0762, allocations: 142.4 kB / 446.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.051e-05/0.07629, allocations: 0.6809 MB / 447.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.695e-05/0.07632, allocations: 7.438 kB / 447.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of SimCode: time 7.91e-07/0.07632, allocations: 0 / 447.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of Templates: time 0.001357/0.07768, allocations: 0.5564 MB / 447.7 MB, free: 10.71 MB / 298.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/jenkins/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