Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001259/0.001259, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 64.03 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3088, allocations: 50.55 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002292/0.3111, allocations: 1.429 MB / 410.2 MB, free: 112 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001686/0.3113, allocations: 31.91 kB / 410.2 MB, free: 80 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.638e-05/0.3114, allocations: 0 / 410.2 MB, free: 80 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.001e-05/0.3114, allocations: 3.938 kB / 410.2 MB, free: 76 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.806e-05/0.3115, allocations: 7.922 kB / 410.2 MB, free: 68 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.3117, allocations: 19.97 kB / 410.2 MB, free: 48 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.33e-05/0.3118, allocations: 23.94 kB / 410.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.019e-05/0.3119, allocations: 15.98 kB / 410.3 MB, free: 8 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.521e-05/0.3119, allocations: 15.92 kB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.26e-05/0.312, allocations: 15.92 kB / 410.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.312, allocations: 0 / 410.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.196e-06/0.312, allocations: 4 kB / 410.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.792e-05/0.312, allocations: 4 kB / 410.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.972e-05/0.3121, allocations: 19.86 kB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 7.937e-05/0.3122, allocations: 31.89 kB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3122, allocations: 0 / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3122, allocations: 0 / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.3122, allocations: 0 / 410.4 MB, free: 15.92 MB / 334.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.0003946/0.3126, allocations: 349.2 kB / 410.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3126, allocations: 8.031 kB / 410.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.654e-05/0.3127, allocations: 34.75 kB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.663e-05/0.3127, allocations: 4.844 kB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.3129, allocations: 188.2 kB / 410.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.3129, allocations: 384 / 410.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.313, allocations: 4.375 kB / 410.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003604/0.3133, allocations: 123.7 kB / 411.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.3134, allocations: 3.938 kB / 411.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.3134, allocations: 0 / 411.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3134, allocations: 4 kB / 411.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.3135, allocations: 23.97 kB / 411.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000201/0.3138, allocations: 157.7 kB / 411.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000232/0.314, allocations: 62.48 kB / 411.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.3141, allocations: 24.92 kB / 411.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.3142, allocations: 4 kB / 411.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.3142, allocations: 38.56 kB / 411.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.382e-06/0.3142, allocations: 0 / 411.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004274/0.3147, allocations: 89.67 kB / 411.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.612e-05/0.3148, allocations: 55.34 kB / 411.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.3149, allocations: 109.8 kB / 411.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.3149, allocations: 25.7 kB / 411.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.574e-05/0.315, allocations: 88.14 kB / 411.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.315, allocations: 0 / 411.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.431e-05/0.3151, allocations: 17.72 kB / 411.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.3153, allocations: 314.8 kB / 412.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.423e-05/0.3153, allocations: 8 kB / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.437e-05/0.3154, allocations: 27.44 kB / 412.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.146e-05/0.3154, allocations: 43.36 kB / 412.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3154, allocations: 0 / 412.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001397/0.3156, allocations: 61.62 kB / 412.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.3156, allocations: 11.97 kB / 412.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.3156, allocations: 4 kB / 412.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.3157, allocations: 0 / 412.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.788e-05/0.3158, allocations: 11.94 kB / 412.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.3158, allocations: 0 / 412.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.892e-05/0.3158, allocations: 4 kB / 412.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-06/0.3158, allocations: 3.938 kB / 412.2 MB, free: 13.79 MB / 334.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 0.0001159/0.316, allocations: 117.8 kB / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002261/0.3162, allocations: 69.61 kB / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.832e-05/0.3163, allocations: 11.89 kB / 412.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3163, allocations: 0 / 412.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3163, allocations: 0 / 412.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.3163, allocations: 0 / 412.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.3165, allocations: 153.7 kB / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/0.3165, allocations: 3.938 kB / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.812e-05/0.3166, allocations: 15.92 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3166, allocations: 3.938 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.3166, allocations: 0 / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3166, allocations: 4 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3166, allocations: 8.359 kB / 412.6 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.3169, allocations: 97 kB / 412.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-05/0.317, allocations: 77.11 kB / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.048e-05/0.317, allocations: 7.938 kB / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.132e-05/0.3171, allocations: 4 kB / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.809e-06/0.3171, allocations: 0 / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.766e-06/0.3171, allocations: 4 kB / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.269e-05/0.3172, allocations: 87.27 kB / 412.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3172, allocations: 4 kB / 412.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003568/0.3176, allocations: 4 kB / 412.9 MB, free: 13.01 MB / 334.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 0.0008356/0.3184, allocations: 0.6513 MB / 413.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001908/0.3186, allocations: 32.17 kB / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3186, allocations: 4.062 kB / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.61e-07/0.3186, allocations: 0 / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004193/0.3191, allocations: 24.02 kB / 413.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.3205, allocations: 1.181 MB / 414.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.3209, allocations: 0.6807 MB / 415.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.648e-05/0.321, allocations: 3.984 kB / 415.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.322e-05/0.321, allocations: 18.94 kB / 415.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of SimCode: time 8.01e-07/0.321, allocations: 0 / 415.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02242/0.3435, allocations: 1.375 MB / 416.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.513/7.856, allocations: 11.3 kB / 416.9 MB, free: 9.02 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches