Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0007556/0.0007556, allocations: 97.59 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009828/0.0009828, allocations: 206.1 kB / 18.28 MB, free: 5.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002086/0.0002086, allocations: 4 kB / 307.8 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08002/0.08025, allocations: 51.52 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.001348/0.08163, allocations: 1.153 MB / 360.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001426/0.08179, allocations: 19.92 kB / 360.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.961e-05/0.08185, allocations: 4 kB / 360.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.877e-05/0.08188, allocations: 7.922 kB / 360.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 2.738e-05/0.08191, allocations: 0 / 360.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001998/0.08212, allocations: 23.92 kB / 360.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.533e-05/0.08219, allocations: 23.92 kB / 360.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.103e-05/0.08228, allocations: 8 kB / 360.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.294e-05/0.08231, allocations: 11.92 kB / 360.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.596e-05/0.08236, allocations: 15.94 kB / 360.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.554e-05/0.08238, allocations: 0 / 360.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.467e-06/0.08239, allocations: 4 kB / 360.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.508e-05/0.08241, allocations: 3.984 kB / 360.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.909e-05/0.08246, allocations: 45.56 kB / 360.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.582e-05/0.08253, allocations: 19.89 kB / 360.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.08254, allocations: 0 / 360.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.08254, allocations: 0 / 360.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.08255, allocations: 0 / 360.7 MB, free: 11.86 MB / 302.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.0003406/0.08289, allocations: 338.3 kB / 361 MB, free: 11.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.08294, allocations: 12.03 kB / 361 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.816e-05/0.08298, allocations: 34.75 kB / 361.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.417e-05/0.08301, allocations: 12.83 kB / 361.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001489/0.08317, allocations: 172.3 kB / 361.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.0832, allocations: 8.375 kB / 361.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.346e-06/0.08321, allocations: 384 / 361.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.0835, allocations: 115.8 kB / 361.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.08352, allocations: 7.938 kB / 361.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.08354, allocations: 4 kB / 361.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.08354, allocations: 0 / 361.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.467e-05/0.08364, allocations: 23.97 kB / 361.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001113/0.08376, allocations: 157.7 kB / 361.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000126/0.0839, allocations: 50.5 kB / 361.6 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.229e-05/0.08397, allocations: 24.92 kB / 361.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.08398, allocations: 8 kB / 361.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.645e-05/0.08401, allocations: 30.56 kB / 361.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.08401, allocations: 0 / 361.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002266/0.08424, allocations: 81.5 kB / 361.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.0843, allocations: 59.34 kB / 361.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.098e-05/0.08436, allocations: 105.8 kB / 361.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.08438, allocations: 29.7 kB / 361.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.1e-05/0.08442, allocations: 88.14 kB / 362 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.097e-05/0.08444, allocations: 0 / 362 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.169e-05/0.08446, allocations: 17.66 kB / 362 MB, free: 10.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.314e-05/0.08455, allocations: 318.8 kB / 362.4 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.136e-05/0.08457, allocations: 4 kB / 362.4 MB, free: 9.961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.475e-05/0.0846, allocations: 27.44 kB / 362.4 MB, free: 9.922 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.049e-05/0.08464, allocations: 39.38 kB / 362.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.08465, allocations: 3.938 kB / 362.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.901e-05/0.08473, allocations: 61.62 kB / 362.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.08475, allocations: 7.938 kB / 362.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.08476, allocations: 0 / 362.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.08477, allocations: 4.125 kB / 362.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.519e-05/0.08483, allocations: 15.92 kB / 362.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/0.08484, allocations: 0 / 362.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.928e-05/0.08486, allocations: 3.906 kB / 362.5 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.08487, allocations: 4 kB / 362.5 MB, free: 9.766 MB / 302.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.059e-05/0.08493, allocations: 117.8 kB / 362.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.08506, allocations: 61.61 kB / 362.7 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.351e-05/0.0851, allocations: 7.5 kB / 362.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.0851, allocations: 0 / 362.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.08511, allocations: 4 kB / 362.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.08512, allocations: 0 / 362.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.247e-05/0.08521, allocations: 161.6 kB / 362.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.08521, allocations: 0 / 362.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.99e-05/0.08525, allocations: 7.938 kB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.08526, allocations: 3.938 kB / 362.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.08527, allocations: 4 kB / 362.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.08528, allocations: 0 / 362.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.08528, allocations: 0 / 362.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001462/0.08543, allocations: 93.25 kB / 363 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.234e-05/0.08547, allocations: 77.16 kB / 363.1 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.08549, allocations: 11.91 kB / 363.1 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.848e-05/0.08553, allocations: 4 kB / 363.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.258e-06/0.08554, allocations: 0 / 363.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.029e-06/0.08555, allocations: 7.938 kB / 363.1 MB, free: 9.105 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.124e-05/0.08558, allocations: 83.66 kB / 363.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08559, allocations: 0 / 363.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001736/0.08577, allocations: 4 kB / 363.2 MB, free: 9.02 MB / 302.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.0004353/0.08621, allocations: 0.6553 MB / 363.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.923e-05/0.08632, allocations: 27.92 kB / 363.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.08633, allocations: 4 kB / 363.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.4e-07/0.08633, allocations: 0 / 363.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000206/0.08654, allocations: 31.23 kB / 363.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000903/0.08746, allocations: 1.176 MB / 365.1 MB, free: 7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.08776, allocations: 0.6809 MB / 365.7 MB, free: 6.293 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.388e-05/0.08778, allocations: 4 kB / 365.7 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.728e-05/0.08782, allocations: 7.438 kB / 365.7 MB, free: 6.281 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.08782, allocations: 0 / 365.7 MB, free: 6.281 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009236/0.09706, allocations: 1.085 MB / 366.8 MB, free: 5.359 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/0.09729, allocations: 228.3 kB / 367.1 MB, free: 5.098 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.585/1.683, allocations: 4 kB / 367.1 MB, free: 5.094 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches