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.001679/0.001679, allocations: 174.2 kB / 16.77 MB, free: 5.016 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.625/1.625, allocations: 205.4 MB / 222.9 MB, free: 8.93 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.0007847/0.0007848, allocations: 92.73 kB / 271.3 MB, free: 8.234 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.07306/0.07306, allocations: 12.59 MB / 332.1 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004348/0.0004349, allocations: 12 kB / 392.6 MB, free: 66.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07401/0.07446, allocations: 50.38 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001195/0.07571, allocations: 1.148 MB / 444.1 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002309/0.07595, allocations: 95.72 kB / 444.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.203e-05/0.07601, allocations: 0 / 444.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.527e-05/0.07604, allocations: 0 / 444.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.308e-05/0.07608, allocations: 3.938 kB / 444.2 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002159/0.0763, allocations: 19.97 kB / 444.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.863e-05/0.07637, allocations: 23.94 kB / 444.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.931e-05/0.07646, allocations: 11.98 kB / 444.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.637e-05/0.0765, allocations: 15.88 kB / 444.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.997e-05/0.07654, allocations: 7.922 kB / 444.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.07656, allocations: 4 kB / 444.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.516e-06/0.07658, allocations: 0 / 444.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.308e-05/0.0766, allocations: 3.984 kB / 444.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.411e-05/0.07663, allocations: 37.64 kB / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.786e-05/0.07669, allocations: 11.97 kB / 444.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.0767, allocations: 0 / 444.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.0767, allocations: 0 / 444.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.07671, allocations: 4 kB / 444.3 MB, free: 14.73 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.0003012/0.07702, allocations: 339.7 kB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.07706, allocations: 12.03 kB / 444.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.475e-05/0.07709, allocations: 8.781 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.07721, allocations: 176.3 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.07722, allocations: 4.375 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.07724, allocations: 384 / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002466/0.07749, allocations: 127.7 kB / 445 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.07751, allocations: 192 / 445 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.07752, allocations: 7.938 kB / 445 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.07753, allocations: 0 / 445 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.717e-05/0.07761, allocations: 19.98 kB / 445 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.607e-05/0.0777, allocations: 157.7 kB / 445.2 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000126/0.07783, allocations: 62.48 kB / 445.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.113e-05/0.07789, allocations: 28.92 kB / 445.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.07792, allocations: 4 kB / 445.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.403e-05/0.07794, allocations: 30.56 kB / 445.3 MB, free: 13.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.07794, allocations: 0 / 445.3 MB, free: 13.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001817/0.07813, allocations: 73.61 kB / 445.4 MB, free: 13.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.07817, allocations: 59.41 kB / 445.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.994e-05/0.07822, allocations: 105.8 kB / 445.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.612e-06/0.07824, allocations: 29.64 kB / 445.6 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.018e-05/0.07826, allocations: 84.14 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.999e-06/0.07827, allocations: 0 / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.834e-06/0.07828, allocations: 0 / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.437e-05/0.07833, allocations: 322.8 kB / 446 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.225e-06/0.07834, allocations: 0 / 446 MB, free: 12.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.869e-05/0.07837, allocations: 31.61 kB / 446 MB, free: 12.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.89e-05/0.0784, allocations: 39.36 kB / 446 MB, free: 12.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.07841, allocations: 0 / 446 MB, free: 12.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.898e-05/0.07847, allocations: 61.55 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.07849, allocations: 4 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.0785, allocations: 3.938 kB / 446.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.07852, allocations: 7.938 kB / 446.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.295e-05/0.07856, allocations: 7.984 kB / 446.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.07858, allocations: 7.938 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.916e-05/0.0786, allocations: 3.938 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.196e-06/0.07861, allocations: 0 / 446.1 MB, free: 12.7 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 5.077e-05/0.07866, allocations: 114.6 kB / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.551e-05/0.07875, allocations: 69.61 kB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.49e-05/0.07879, allocations: 11.84 kB / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.07879, allocations: 0 / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.0788, allocations: 256 / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.07881, allocations: 0 / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.768e-05/0.07886, allocations: 157.7 kB / 446.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.07887, allocations: 0 / 446.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.521e-05/0.07892, allocations: 11.98 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.07893, allocations: 4 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.07894, allocations: 7.938 kB / 446.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.07895, allocations: 7.938 kB / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.07895, allocations: 0 / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001031/0.07906, allocations: 89.02 kB / 446.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.54e-05/0.07908, allocations: 77.11 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.0791, allocations: 7.938 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.262e-05/0.07913, allocations: 4 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.385e-06/0.07914, allocations: 0 / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-06/0.07914, allocations: 0 / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.241e-05/0.07917, allocations: 87.27 kB / 446.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.07918, allocations: 0 / 446.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001659/0.07935, allocations: 4 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: 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 6.107e-05/0.07941, allocations: 91.25 kB / 446.9 MB, free: 11.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.39e-05/0.07951, allocations: 31.92 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.07952, allocations: 0 / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.07953, allocations: 4 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000194/0.07973, allocations: 23.98 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002213/0.07996, allocations: 154.6 kB / 447.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.167e-05/0.08005, allocations: 0.6809 MB / 447.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.755e-05/0.08007, allocations: 7.438 kB / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.08008, allocations: 0 / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of Templates: time 0.001405/0.08149, allocations: 0.5551 MB / 448.3 MB, free: 10.34 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