Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 111.8 kB / 17.06 MB, free: 5.977 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.001405/0.001405, allocations: 194.9 kB / 18 MB, free: 5.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 51.86 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.3964, allocations: 49.45 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.008175/0.4047, allocations: 1.409 MB / 401.6 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004514/0.4052, allocations: 26.12 kB / 401.7 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.4054, allocations: 5.062 kB / 401.7 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.273e-05/0.4055, allocations: 0 / 401.7 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.176e-05/0.4057, allocations: 5 kB / 401.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007676/0.4064, allocations: 19.11 kB / 401.7 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002173/0.4067, allocations: 27.17 kB / 401.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.4069, allocations: 19.75 kB / 401.7 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.049e-05/0.407, allocations: 12.06 kB / 401.8 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.4072, allocations: 15.3 kB / 401.8 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.688e-05/0.4072, allocations: 2.812 kB / 401.8 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.05e-05/0.4073, allocations: 2.469 kB / 401.8 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.101e-05/0.4073, allocations: 1.219 kB / 401.8 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.198e-05/0.4074, allocations: 19.03 kB / 401.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.4076, allocations: 33.97 kB / 401.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.838e-06/0.4076, allocations: 0 / 401.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.44e-06/0.4077, allocations: 1.375 kB / 401.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.4077, allocations: 0 / 401.8 MB, free: 7.188 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.001057/0.4087, allocations: 350.6 kB / 402.2 MB, free: 6.809 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001152/0.4089, allocations: 9.062 kB / 402.2 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001281/0.409, allocations: 34.81 kB / 402.2 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.313e-05/0.4091, allocations: 0.9375 kB / 402.2 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006384/0.4098, allocations: 192.1 kB / 402.4 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.032e-05/0.4098, allocations: 4.375 kB / 402.4 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.062e-05/0.4099, allocations: 384 / 402.4 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006977/0.4106, allocations: 115.9 kB / 402.5 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.4106, allocations: 3.938 kB / 402.5 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.4106, allocations: 0 / 402.5 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.4106, allocations: 4 kB / 402.5 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.4108, allocations: 23.97 kB / 402.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003584/0.4112, allocations: 153.7 kB / 402.7 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000258/0.4115, allocations: 54.48 kB / 402.8 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.4116, allocations: 28.92 kB / 402.8 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.4117, allocations: 0 / 402.8 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002119/0.4119, allocations: 34.5 kB / 402.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.4119, allocations: 0 / 402.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004628/0.4124, allocations: 73.61 kB / 402.9 MB, free: 5.965 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/0.4125, allocations: 63.34 kB / 403 MB, free: 5.891 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.4127, allocations: 101.8 kB / 403.1 MB, free: 5.781 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.4128, allocations: 29.7 kB / 403.1 MB, free: 5.746 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.4129, allocations: 88.12 kB / 403.2 MB, free: 5.656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.341e-05/0.4129, allocations: 3.906 kB / 403.2 MB, free: 5.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.626e-05/0.413, allocations: 21.7 kB / 403.2 MB, free: 5.625 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003585/0.4134, allocations: 314.8 kB / 403.5 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.12e-05/0.4134, allocations: 4 kB / 403.5 MB, free: 5.305 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.481e-05/0.4136, allocations: 31.42 kB / 403.5 MB, free: 5.262 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.288e-05/0.4137, allocations: 39.38 kB / 403.6 MB, free: 5.211 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.4137, allocations: 0 / 403.6 MB, free: 5.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001378/0.4138, allocations: 57.62 kB / 403.6 MB, free: 5.148 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.4139, allocations: 8.062 kB / 403.6 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.4139, allocations: 8 kB / 403.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.911e-05/0.4139, allocations: 0 / 403.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.4141, allocations: 11.94 kB / 403.7 MB, free: 5.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.4141, allocations: 0 / 403.7 MB, free: 5.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.527e-05/0.4141, allocations: 4 kB / 403.7 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.4142, allocations: 3.938 kB / 403.7 MB, free: 5.113 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 0.0002328/0.4144, allocations: 113.8 kB / 403.8 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002559/0.4147, allocations: 65.52 kB / 403.8 MB, free: 4.922 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.457e-05/0.4147, allocations: 11.5 kB / 403.9 MB, free: 4.906 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.4148, allocations: 4.219 kB / 403.9 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.4148, allocations: 4 kB / 403.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.4148, allocations: 4.359 kB / 403.9 MB, free: 4.895 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.4151, allocations: 153.7 kB / 404 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.4151, allocations: 7.938 kB / 404 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.376e-05/0.4152, allocations: 7.922 kB / 404 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.387e-06/0.4152, allocations: 7.938 kB / 404 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.4152, allocations: 0 / 404 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.4152, allocations: 0 / 404 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.4152, allocations: 3.984 kB / 404 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000388/0.4156, allocations: 85.11 kB / 404.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.4158, allocations: 85.02 kB / 404.2 MB, free: 4.465 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.4158, allocations: 3.938 kB / 404.2 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.206e-05/0.4158, allocations: 4 kB / 404.2 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.045e-05/0.4159, allocations: 3.984 kB / 404.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.106e-06/0.4159, allocations: 0 / 404.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001053/0.416, allocations: 83.28 kB / 404.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.416, allocations: 4 kB / 404.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003612/0.4164, allocations: 4 kB / 404.3 MB, free: 4.363 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 0.001122/0.4175, allocations: 0.6475 MB / 405 MB, free: 3.684 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000209/0.4178, allocations: 27.92 kB / 405 MB, free: 3.656 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.4178, allocations: 4.312 kB / 405 MB, free: 3.652 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.51e-07/0.4178, allocations: 0 / 405 MB, free: 3.652 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003936/0.4182, allocations: 24.02 kB / 405 MB, free: 3.629 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001937/0.4201, allocations: 1.166 MB / 406.2 MB, free: 2.363 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005763/0.4207, allocations: 0.6883 MB / 406.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.446e-05/0.4208, allocations: 0 / 406.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.711e-05/0.4209, allocations: 15.42 kB / 406.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of SimCode: time 4.5e-07/0.4209, allocations: 0 / 406.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1014/0.5223, allocations: 1.314 MB / 408.2 MB, free: 468 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/15.42, allocations: 8.562 kB / 408.2 MB, free: 460 kB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches