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.0008958/0.0008958, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009773/0.0009773, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8806/0.8806, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.511e-05/1.671e-05, allocations: 7.266 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.001687/0.001704, allocations: 1.447 MB / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001573/0.001861, allocations: 23.88 kB / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.446e-05/0.001916, allocations: 11.94 kB / 326 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.537e-05/0.001941, allocations: 3.984 kB / 326 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.31e-05/0.001974, allocations: 7.922 kB / 326 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002079/0.002182, allocations: 23.23 kB / 326 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.068e-05/0.002253, allocations: 31.91 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.638e-05/0.002339, allocations: 4 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.344e-05/0.002383, allocations: 19.92 kB / 326.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.35e-05/0.002416, allocations: 11.98 kB / 326.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.002436, allocations: 0 / 326.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.556e-06/0.002444, allocations: 4 kB / 326.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.464e-05/0.002459, allocations: 3.984 kB / 326.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.233e-05/0.002481, allocations: 15.94 kB / 326.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.087e-05/0.002562, allocations: 35.83 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.002564, allocations: 0 / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.002565, allocations: 0 / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.085e-06/0.002568, allocations: 0 / 326.2 MB, free: 14.25 MB / 298.7 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.0003074/0.002876, allocations: 266.3 kB / 326.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.002913, allocations: 19.92 kB / 326.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.769e-05/0.002941, allocations: 34.75 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.106e-05/0.002962, allocations: 4.891 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.003113, allocations: 121.8 kB / 326.6 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.00313, allocations: 4.375 kB / 326.6 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.923e-06/0.003137, allocations: 4.375 kB / 326.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002315/0.003368, allocations: 119.8 kB / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.003375, allocations: 4.172 kB / 326.7 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-06/0.003383, allocations: 384 / 326.7 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.003388, allocations: 8.062 kB / 326.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.61e-05/0.003454, allocations: 23.98 kB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.792e-05/0.003552, allocations: 128.7 kB / 326.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001038/0.003656, allocations: 58.55 kB / 326.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.338e-05/0.003699, allocations: 24.92 kB / 327 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.646e-06/0.003708, allocations: 3.938 kB / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.003725, allocations: 30.56 kB / 327 MB, free: 13.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.91e-07/0.003726, allocations: 0 / 327 MB, free: 13.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001772/0.003903, allocations: 81.59 kB / 327.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.003947, allocations: 63.33 kB / 327.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.372e-05/0.004001, allocations: 105.9 kB / 327.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.799e-06/0.004011, allocations: 29.7 kB / 327.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.796e-05/0.004039, allocations: 84.12 kB / 327.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.014e-05/0.004049, allocations: 4 kB / 327.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.277e-05/0.004072, allocations: 17.72 kB / 327.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.216e-05/0.004144, allocations: 310.8 kB / 327.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.356e-06/0.004152, allocations: 4 kB / 327.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.06e-06/0.004157, allocations: 0 / 327.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.204e-05/0.004179, allocations: 20.78 kB / 327.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.004181, allocations: 0 / 327.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.864e-05/0.004219, allocations: 41.66 kB / 327.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.004232, allocations: 11.94 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.004236, allocations: 4.094 kB / 327.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.004246, allocations: 0 / 327.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.178e-05/0.004288, allocations: 7.938 kB / 327.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.004293, allocations: 3.984 kB / 327.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.356e-06/0.004301, allocations: 0 / 327.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-06/0.004304, allocations: 0 / 327.8 MB, free: 12.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 4.984e-05/0.004354, allocations: 113.8 kB / 327.9 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.379e-05/0.004428, allocations: 65.61 kB / 327.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.786e-05/0.004446, allocations: 8 kB / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.004447, allocations: 0 / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.004452, allocations: 7.938 kB / 328 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.004454, allocations: 0 / 328 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.379e-05/0.004508, allocations: 128.8 kB / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.004509, allocations: 0 / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.982e-05/0.004539, allocations: 11.98 kB / 328.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.00454, allocations: 0 / 328.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.004546, allocations: 0 / 328.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.004547, allocations: 4 kB / 328.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.004548, allocations: 4.172 kB / 328.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.307e-05/0.004641, allocations: 96.98 kB / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.351e-06/0.004647, allocations: 0 / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.00466, allocations: 15.98 kB / 328.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.374e-05/0.004673, allocations: 4.25 kB / 328.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.526e-06/0.004677, allocations: 3.938 kB / 328.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.466e-06/0.00468, allocations: 4 kB / 328.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.564e-05/0.004706, allocations: 83.22 kB / 328.3 MB, free: 11.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004706, allocations: 0 / 328.3 MB, free: 11.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000122/0.004828, allocations: 8 kB / 328.3 MB, free: 11.8 MB / 298.7 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.0003068/0.005135, allocations: 0.6398 MB / 329 MB, free: 11.13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.993e-05/0.005215, allocations: 27.92 kB / 329 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.005216, allocations: 4.125 kB / 329 MB, free: 11.1 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.005217, allocations: 3.938 kB / 329 MB, free: 11.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001983/0.005415, allocations: 31.94 kB / 329 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000632/0.006047, allocations: 1.105 MB / 330.1 MB, free: 9.879 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.904e-05/0.006086, allocations: 71.34 kB / 330.2 MB, free: 9.789 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.987e-05/0.006106, allocations: 0 / 330.2 MB, free: 9.789 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.555e-05/0.006141, allocations: 8.5 kB / 330.2 MB, free: 9.781 MB / 298.7 MB Notification: Performance of SimCode: time 4e-07/0.006142, allocations: 0 / 330.2 MB, free: 9.781 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0142/0.02034, allocations: 2.003 MB / 332.2 MB, free: 7.875 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.743/6.763, allocations: 4.062 kB / 332.2 MB, free: 7.871 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 8.377314013428986]