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.001394/0.001394, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001577/0.001577, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001819, allocations: 64.36 kB / 307.1 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1131, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.00277/0.116, allocations: 1.433 MB / 359 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001954/0.1162, allocations: 31.86 kB / 359 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.401e-05/0.1163, allocations: 0 / 359 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.963e-05/0.1163, allocations: 3.984 kB / 359 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.133e-05/0.1164, allocations: 3.938 kB / 359.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.1166, allocations: 23.97 kB / 359.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.217e-05/0.1167, allocations: 27.94 kB / 359.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.369e-05/0.1168, allocations: 7.984 kB / 359.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.541e-05/0.1168, allocations: 11.94 kB / 359.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.199e-05/0.1169, allocations: 15.92 kB / 359.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.969e-05/0.1169, allocations: 4 kB / 359.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.023e-05/0.1169, allocations: 0 / 359.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.031e-05/0.1169, allocations: 15.92 kB / 359.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.11e-05/0.117, allocations: 11.92 kB / 359.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.183e-05/0.1171, allocations: 31.91 kB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.1171, allocations: 0 / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.1171, allocations: 4 kB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.1171, allocations: 3.938 kB / 359.2 MB, free: 12.39 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.0003901/0.1175, allocations: 343.7 kB / 359.5 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1175, allocations: 12.03 kB / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.417e-05/0.1176, allocations: 34.75 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.762e-05/0.1176, allocations: 4.844 kB / 359.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001712/0.1178, allocations: 180.3 kB / 359.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.1178, allocations: 384 / 359.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.1178, allocations: 4.375 kB / 359.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003557/0.1182, allocations: 123.8 kB / 359.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.1182, allocations: 3.938 kB / 359.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.1182, allocations: 3.938 kB / 359.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1182, allocations: 4 kB / 359.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.1184, allocations: 23.91 kB / 359.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001309/0.1185, allocations: 157.7 kB / 360.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.1187, allocations: 58.55 kB / 360.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.695e-05/0.1188, allocations: 28.86 kB / 360.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.377e-06/0.1188, allocations: 4 kB / 360.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.1188, allocations: 34.55 kB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.1188, allocations: 0 / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002846/0.1191, allocations: 85.53 kB / 360.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.1192, allocations: 55.41 kB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.236e-05/0.1192, allocations: 101.9 kB / 360.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.1193, allocations: 33.69 kB / 360.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.294e-05/0.1193, allocations: 80.14 kB / 360.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.503e-05/0.1193, allocations: 7.906 kB / 360.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.1194, allocations: 17.72 kB / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.498e-05/0.1195, allocations: 318.8 kB / 360.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.47e-05/0.1195, allocations: 4 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.106e-05/0.1195, allocations: 33.31 kB / 360.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.43e-05/0.1196, allocations: 35.38 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1196, allocations: 0 / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.902e-05/0.1197, allocations: 65.94 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.1197, allocations: 10.91 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1197, allocations: 4 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.1197, allocations: 3.984 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.929e-05/0.1198, allocations: 15.98 kB / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.1198, allocations: 0 / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.757e-05/0.1199, allocations: 4 kB / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.239e-06/0.1199, allocations: 4 kB / 361.1 MB, free: 10.27 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 7.845e-05/0.1199, allocations: 117.9 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/0.1201, allocations: 77.39 kB / 361.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.173e-05/0.1201, allocations: 11.91 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1202, allocations: 0 / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1202, allocations: 0 / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.1202, allocations: 3.984 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.98e-05/0.1203, allocations: 153.7 kB / 361.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1203, allocations: 0 / 361.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.604e-05/0.1203, allocations: 11.98 kB / 361.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.1204, allocations: 3.938 kB / 361.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.1204, allocations: 4 kB / 361.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1204, allocations: 0 / 361.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1204, allocations: 4 kB / 361.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001727/0.1206, allocations: 89.05 kB / 361.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.647e-05/0.1206, allocations: 92.88 kB / 361.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.1206, allocations: 3.938 kB / 361.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.38e-05/0.1207, allocations: 4 kB / 361.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.452e-06/0.1207, allocations: 0 / 361.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.1207, allocations: 4 kB / 361.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.2e-05/0.1207, allocations: 91.27 kB / 361.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1207, allocations: 0 / 361.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000195/0.1209, allocations: 4 kB / 361.7 MB, free: 9.492 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.0005275/0.1215, allocations: 0.6398 MB / 362.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.1216, allocations: 39.97 kB / 362.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1216, allocations: 0 / 362.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.61e-07/0.1216, allocations: 0 / 362.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.122, allocations: 31.95 kB / 362.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009235/0.1229, allocations: 1.18 MB / 363.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000193/0.1231, allocations: 0.6807 MB / 364.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.017e-05/0.1232, allocations: 0 / 364.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.981e-05/0.1232, allocations: 11.44 kB / 364.3 MB, free: 6.758 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1232, allocations: 4 kB / 364.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01796/0.1412, allocations: 1.333 MB / 365.7 MB, free: 5.535 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.481/7.623, allocations: 17.83 kB / 365.7 MB, free: 5.527 MB / 302.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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) "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock1.period,assignClock1.u,assignClock1.y,step.counter,step.y