Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001827/0.001827, allocations: 214.7 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.45/1.45, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 51.94 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.255, allocations: 53.37 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002996/0.258, allocations: 1.448 MB / 432.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002242/0.2582, allocations: 27.92 kB / 432.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.391e-05/0.2583, allocations: 0 / 432.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.811e-05/0.2583, allocations: 7.922 kB / 432.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.879e-05/0.2583, allocations: 3.938 kB / 432.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.2586, allocations: 23.97 kB / 432.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000107/0.2587, allocations: 35.84 kB / 432.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.2588, allocations: 0 / 432.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.364e-05/0.2589, allocations: 15.94 kB / 432.7 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.399e-05/0.2589, allocations: 19.92 kB / 432.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.2589, allocations: 0 / 432.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.162e-05/0.2589, allocations: 4 kB / 432.7 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.822e-05/0.259, allocations: 4 kB / 432.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.86e-05/0.259, allocations: 19.86 kB / 432.8 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.2591, allocations: 35.27 kB / 432.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2591, allocations: 0 / 432.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2591, allocations: 0 / 432.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.2591, allocations: 0 / 432.8 MB, free: 5.207 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.0004633/0.2596, allocations: 263.3 kB / 433 MB, free: 4.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.2596, allocations: 12.03 kB / 433.1 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.021e-05/0.2597, allocations: 38.75 kB / 433.1 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.24e-05/0.2597, allocations: 4.891 kB / 433.1 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.26, allocations: 126.4 kB / 433.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/0.26, allocations: 4.312 kB / 433.2 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.26, allocations: 4.375 kB / 433.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003957/0.2604, allocations: 123.8 kB / 433.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.2604, allocations: 3.938 kB / 433.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.2604, allocations: 0 / 433.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.2604, allocations: 4 kB / 433.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.2606, allocations: 23.97 kB / 433.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001676/0.2607, allocations: 124.8 kB / 433.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/0.2609, allocations: 58.48 kB / 433.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.21e-05/0.261, allocations: 28.92 kB / 433.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.358e-05/0.261, allocations: 0 / 433.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/0.261, allocations: 34.56 kB / 433.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.02e-07/0.261, allocations: 4 kB / 433.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003109/0.2614, allocations: 85.48 kB / 433.7 MB, free: 4.137 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.003e-05/0.2614, allocations: 63.39 kB / 433.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.64e-05/0.2615, allocations: 101.9 kB / 433.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.2615, allocations: 25.7 kB / 433.9 MB, free: 3.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.622e-05/0.2616, allocations: 88.12 kB / 434 MB, free: 3.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.2616, allocations: 4 kB / 434 MB, free: 3.828 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-05/0.2616, allocations: 13.72 kB / 434 MB, free: 3.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.2618, allocations: 318.8 kB / 434.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.884e-05/0.2618, allocations: 3.984 kB / 434.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.819e-05/0.2619, allocations: 31.44 kB / 434.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.124e-05/0.2619, allocations: 39.38 kB / 434.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2619, allocations: 3.938 kB / 434.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001134/0.262, allocations: 65.58 kB / 434.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.2621, allocations: 7.938 kB / 434.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2621, allocations: 4.125 kB / 434.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.2621, allocations: 4 kB / 434.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.796e-05/0.2622, allocations: 11.92 kB / 434.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.2622, allocations: 4 kB / 434.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.29e-05/0.2622, allocations: 3.938 kB / 434.5 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.221e-06/0.2622, allocations: 4 kB / 434.5 MB, free: 3.277 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 0.000109/0.2623, allocations: 113.8 kB / 434.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.2625, allocations: 65.75 kB / 434.7 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.346e-05/0.2625, allocations: 12.03 kB / 434.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.2625, allocations: 7.938 kB / 434.7 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2625, allocations: 4 kB / 434.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.2625, allocations: 0 / 434.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.2626, allocations: 128.7 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2626, allocations: 0 / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.17e-05/0.2627, allocations: 8 kB / 434.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.348e-06/0.2627, allocations: 7.922 kB / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.2627, allocations: 0 / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2627, allocations: 0 / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2627, allocations: 384 / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001826/0.2629, allocations: 89.11 kB / 434.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.507e-05/0.2629, allocations: 7.953 kB / 434.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.2629, allocations: 7.938 kB / 434.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.05e-05/0.263, allocations: 11.98 kB / 434.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.875e-06/0.263, allocations: 0 / 434.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.263, allocations: 0 / 434.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.948e-05/0.263, allocations: 83.28 kB / 435 MB, free: 2.656 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.263, allocations: 3.938 kB / 435 MB, free: 2.652 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001943/0.2632, allocations: 12 kB / 435 MB, free: 2.641 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.0006142/0.2638, allocations: 0.6467 MB / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001524/0.264, allocations: 27.92 kB / 435.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.264, allocations: 320 / 435.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.936e-06/0.264, allocations: 7.984 kB / 435.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.2643, allocations: 31.95 kB / 435.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.2655, allocations: 1.177 MB / 436.9 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.2658, allocations: 0.6846 MB / 437.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.301e-05/0.2658, allocations: 0 / 437.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.257e-05/0.2659, allocations: 15.44 kB / 437.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2659, allocations: 0 / 437.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02832/0.2942, allocations: 1.483 MB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.2, allocations: 8 kB / 439.1 MB, free: 14.54 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.581814462086186]