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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001842/0.001842, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002251/0.002251, allocations: 207.6 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.632/1.632, allocations: 230.5 MB / 258.2 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 63.89 kB / 378.6 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3266, allocations: 53.41 MB / 432 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002943/0.3295, allocations: 1.452 MB / 433.4 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002065/0.3297, allocations: 31.91 kB / 433.4 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.509e-05/0.3298, allocations: 3.938 kB / 433.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.06e-05/0.3298, allocations: 0 / 433.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.29e-05/0.3299, allocations: 3.938 kB / 433.5 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000287/0.3301, allocations: 23.97 kB / 433.5 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.3302, allocations: 31.92 kB / 433.5 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.3304, allocations: 11.98 kB / 433.5 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.396e-05/0.3304, allocations: 11.94 kB / 433.5 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.64e-05/0.3305, allocations: 19.91 kB / 433.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.3305, allocations: 4 kB / 433.6 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.067e-06/0.3305, allocations: 0 / 433.6 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.335e-05/0.3305, allocations: 4 kB / 433.6 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.887e-05/0.3306, allocations: 15.88 kB / 433.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.3307, allocations: 35.53 kB / 433.6 MB, free: 5.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3307, allocations: 0 / 433.6 MB, free: 5.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3307, allocations: 4 kB / 433.6 MB, free: 5.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.463e-06/0.3307, allocations: 0 / 433.6 MB, free: 5.055 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.0004748/0.3312, allocations: 271.4 kB / 433.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.3312, allocations: 12.03 kB / 433.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.003e-05/0.3312, allocations: 192 / 433.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.337e-05/0.3313, allocations: 30.75 kB / 433.9 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.3313, allocations: 8.891 kB / 433.9 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002235/0.3315, allocations: 122.4 kB / 434.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.3315, allocations: 8.375 kB / 434.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.3315, allocations: 4.375 kB / 434.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.3319, allocations: 119.6 kB / 434.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.076e-06/0.3319, allocations: 0 / 434.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.3319, allocations: 4 kB / 434.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.3319, allocations: 0 / 434.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.3321, allocations: 23.92 kB / 434.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.3322, allocations: 144.7 kB / 434.3 MB, free: 4.203 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.3324, allocations: 50.55 kB / 434.4 MB, free: 4.145 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.094e-05/0.3325, allocations: 24.92 kB / 434.4 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.3325, allocations: 0 / 434.4 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.3325, allocations: 38.5 kB / 434.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.3325, allocations: 0 / 434.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002968/0.3328, allocations: 89.55 kB / 434.5 MB, free: 3.977 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/0.3329, allocations: 55.41 kB / 434.6 MB, free: 3.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.746e-05/0.333, allocations: 101.8 kB / 434.7 MB, free: 3.801 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.333, allocations: 29.7 kB / 434.7 MB, free: 3.766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.308e-05/0.3331, allocations: 84.14 kB / 434.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.3331, allocations: 3.984 kB / 434.8 MB, free: 3.676 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.498e-05/0.3331, allocations: 17.72 kB / 434.8 MB, free: 3.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.3333, allocations: 314.8 kB / 435.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.432e-05/0.3333, allocations: 8 kB / 435.1 MB, free: 3.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.892e-05/0.3333, allocations: 35.42 kB / 435.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.268e-05/0.3334, allocations: 35.38 kB / 435.2 MB, free: 3.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3334, allocations: 4 kB / 435.2 MB, free: 3.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.199e-05/0.3335, allocations: 61.52 kB / 435.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3335, allocations: 11.94 kB / 435.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3335, allocations: 0 / 435.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.3335, allocations: 0 / 435.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.826e-05/0.3336, allocations: 8 kB / 435.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.3336, allocations: 4 kB / 435.3 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.11e-05/0.3336, allocations: 8.109 kB / 435.3 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-06/0.3336, allocations: 4 kB / 435.3 MB, free: 3.129 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 9.069e-05/0.3337, allocations: 114 kB / 435.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.3338, allocations: 81.48 kB / 435.5 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.82e-05/0.3339, allocations: 4 kB / 435.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3339, allocations: 0 / 435.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.3339, allocations: 0 / 435.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.3339, allocations: 4 kB / 435.5 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.334, allocations: 128.7 kB / 435.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.334, allocations: 0 / 435.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.8e-05/0.3341, allocations: 8 kB / 435.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3341, allocations: 7.938 kB / 435.7 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.3341, allocations: 8.359 kB / 435.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3341, allocations: 0 / 435.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3341, allocations: 3.938 kB / 435.7 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001942/0.3343, allocations: 93.05 kB / 435.8 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.415e-05/0.3343, allocations: 11.89 kB / 435.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.3343, allocations: 0 / 435.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.389e-05/0.3343, allocations: 7.984 kB / 435.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.625e-06/0.3343, allocations: 4 kB / 435.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.3343, allocations: 0 / 435.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.758e-05/0.3344, allocations: 83.28 kB / 435.9 MB, free: 2.496 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3344, allocations: 0 / 435.9 MB, free: 2.496 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001807/0.3346, allocations: 4 kB / 435.9 MB, free: 2.492 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.0006188/0.3352, allocations: 0.6476 MB / 436.5 MB, free: 1.816 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001388/0.3353, allocations: 31.92 kB / 436.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3353, allocations: 0 / 436.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.3353, allocations: 0 / 436.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.3356, allocations: 31.94 kB / 436.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.3367, allocations: 1.178 MB / 437.8 MB, free: 488 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.337, allocations: 0.6807 MB / 438.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.089e-05/0.337, allocations: 0 / 438.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.025e-05/0.3371, allocations: 15.44 kB / 438.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3371, allocations: 0 / 438.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.358, allocations: 1.527 MB / 440 MB, free: 14.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.16, allocations: 8 kB / 440 MB, free: 14.35 MB / 350.1 MB " [Timeout remaining time 649] (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 --stepSize=0.000199561 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,previous(step.counter),step.counter,step.height,step.offset,step.startTick,step.y,time [Calling sys.exit(0), Time elapsed: 13.968782534007914]