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.002014/0.002014, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.00227/0.00227, allocations: 206.4 kB / 23.72 MB, free: 4.391 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.542/1.542, allocations: 230.5 MB / 257.4 MB, free: 7.742 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="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 0.001994/0.001994, allocations: 63.89 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3194, allocations: 53.39 MB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002725/0.3221, allocations: 1.451 MB / 432.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001881/0.3223, allocations: 35.84 kB / 432.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.871e-05/0.3224, allocations: 0 / 432.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.488e-05/0.3224, allocations: 3.938 kB / 432.6 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.552e-05/0.3224, allocations: 3.938 kB / 432.6 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.3227, allocations: 27.97 kB / 432.6 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.109e-05/0.3228, allocations: 35.86 kB / 432.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.578e-05/0.3229, allocations: 7.984 kB / 432.7 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.367e-05/0.3229, allocations: 8 kB / 432.7 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.012e-05/0.323, allocations: 19.86 kB / 432.7 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.323, allocations: 0 / 432.7 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.182e-05/0.323, allocations: 4 kB / 432.7 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.684e-05/0.323, allocations: 3.984 kB / 432.7 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.015e-05/0.323, allocations: 11.94 kB / 432.7 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.241e-05/0.3231, allocations: 33.58 kB / 432.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.3231, allocations: 0 / 432.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3231, allocations: 4 kB / 432.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.3231, allocations: 0 / 432.8 MB, free: 4.816 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.0004163/0.3235, allocations: 266.3 kB / 433 MB, free: 4.523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3236, allocations: 15.98 kB / 433 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.592e-05/0.3236, allocations: 34.75 kB / 433.1 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.727e-05/0.3237, allocations: 8.828 kB / 433.1 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002041/0.3239, allocations: 126.4 kB / 433.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.3239, allocations: 4.359 kB / 433.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.3239, allocations: 4.375 kB / 433.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.3242, allocations: 123.8 kB / 433.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.3243, allocations: 3.938 kB / 433.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.575e-06/0.3243, allocations: 0 / 433.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.3243, allocations: 0 / 433.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.3244, allocations: 27.92 kB / 433.4 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000137/0.3245, allocations: 132.7 kB / 433.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.3247, allocations: 58.52 kB / 433.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.585e-05/0.3247, allocations: 24.89 kB / 433.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.3248, allocations: 0 / 433.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.3248, allocations: 38.55 kB / 433.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.11e-07/0.3248, allocations: 0 / 433.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002628/0.325, allocations: 81.59 kB / 433.7 MB, free: 3.738 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.3251, allocations: 59.34 kB / 433.8 MB, free: 3.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.594e-05/0.3252, allocations: 105.9 kB / 433.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.3252, allocations: 25.7 kB / 433.9 MB, free: 3.523 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.68e-05/0.3252, allocations: 84.12 kB / 434 MB, free: 3.438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.026e-05/0.3253, allocations: 0 / 434 MB, free: 3.438 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.3253, allocations: 17.72 kB / 434 MB, free: 3.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3254, allocations: 322.8 kB / 434.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.519e-05/0.3254, allocations: 4 kB / 434.3 MB, free: 3.086 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.116e-05/0.3255, allocations: 31.44 kB / 434.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.936e-05/0.3255, allocations: 35.38 kB / 434.4 MB, free: 2.996 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3255, allocations: 0 / 434.4 MB, free: 2.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.899e-05/0.3256, allocations: 65.58 kB / 434.4 MB, free: 2.926 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.3256, allocations: 7.938 kB / 434.4 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3256, allocations: 8.125 kB / 434.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.3256, allocations: 3.938 kB / 434.5 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.274e-05/0.3257, allocations: 15.92 kB / 434.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.3257, allocations: 0 / 434.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.013e-05/0.3257, allocations: 4.375 kB / 434.5 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-06/0.3257, allocations: 0 / 434.5 MB, free: 2.887 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 8.366e-05/0.3258, allocations: 113.8 kB / 434.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.326, allocations: 69.56 kB / 434.7 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.823e-05/0.326, allocations: 12 kB / 434.7 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.326, allocations: 0 / 434.7 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.326, allocations: 4 kB / 434.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.326, allocations: 0 / 434.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.354e-05/0.3261, allocations: 124.8 kB / 434.8 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3261, allocations: 0 / 434.8 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.678e-05/0.3262, allocations: 15.92 kB / 434.8 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.3262, allocations: 7.938 kB / 434.8 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.383e-06/0.3262, allocations: 0 / 434.8 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3262, allocations: 3.938 kB / 434.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3262, allocations: 0 / 434.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001684/0.3263, allocations: 89.09 kB / 434.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.235e-05/0.3263, allocations: 8.234 kB / 434.9 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.3264, allocations: 7.938 kB / 434.9 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.105e-05/0.3264, allocations: 4 kB / 434.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.148e-06/0.3264, allocations: 3.984 kB / 434.9 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-06/0.3264, allocations: 0 / 434.9 MB, free: 2.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.021e-05/0.3265, allocations: 87.27 kB / 435 MB, free: 2.262 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3265, allocations: 0 / 435 MB, free: 2.262 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001818/0.3266, allocations: 4 kB / 435 MB, free: 2.258 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.0005835/0.3272, allocations: 0.6514 MB / 435.7 MB, free: 1.578 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000131/0.3273, allocations: 32.11 kB / 435.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3273, allocations: 0 / 435.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.81e-07/0.3274, allocations: 0 / 435.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.3276, allocations: 27.95 kB / 435.7 MB, free: 1.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.3287, allocations: 1.184 MB / 436.9 MB, free: 244 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.013e-05/0.3287, allocations: 67.34 kB / 437 MB, free: 156 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.088e-05/0.3288, allocations: 3.984 kB / 437 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.125e-05/0.3288, allocations: 15.56 kB / 437 MB, free: 136 kB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3288, allocations: 0 / 437 MB, free: 136 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02903/0.3578, allocations: 1.9 MB / 438.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.08, allocations: 3.984 kB / 438.9 MB, free: 14.34 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] Reference file matches [Calling sys.exit(0), Time elapsed: 13.657670423388481]