Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.001273/0.001273, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001454/0.001454, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.432/1.432, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 47.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2854, allocations: 53.37 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.002781/0.2882, allocations: 1.479 MB / 432.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001931/0.2884, allocations: 27.91 kB / 432.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.951e-05/0.2885, allocations: 7.938 kB / 432.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.476e-05/0.2885, allocations: 4 kB / 432.6 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.953e-05/0.2886, allocations: 3.938 kB / 432.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.2888, allocations: 19.98 kB / 432.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.772e-05/0.2889, allocations: 27.91 kB / 432.7 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.289, allocations: 11.98 kB / 432.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.17e-05/0.2891, allocations: 11.94 kB / 432.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.157e-05/0.2891, allocations: 11.92 kB / 432.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.183e-05/0.2891, allocations: 4 kB / 432.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.11e-05/0.2891, allocations: 4 kB / 432.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.972e-05/0.2892, allocations: 4 kB / 432.7 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.145e-05/0.2892, allocations: 19.92 kB / 432.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001038/0.2893, allocations: 29.53 kB / 432.8 MB, free: 5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.2893, allocations: 7.984 kB / 432.8 MB, free: 4.992 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2893, allocations: 0 / 432.8 MB, free: 4.992 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.2893, allocations: 0 / 432.8 MB, free: 4.992 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.0004385/0.2898, allocations: 266.2 kB / 433 MB, free: 4.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.2898, allocations: 8.031 kB / 433 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.148e-05/0.2898, allocations: 38.73 kB / 433.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.48e-05/0.2899, allocations: 8.891 kB / 433.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.2901, allocations: 122.5 kB / 433.2 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.2901, allocations: 4.375 kB / 433.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.2901, allocations: 4.375 kB / 433.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003692/0.2905, allocations: 115.8 kB / 433.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2905, allocations: 3.938 kB / 433.3 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.2905, allocations: 7.938 kB / 433.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.2905, allocations: 0 / 433.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.2907, allocations: 27.91 kB / 433.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001564/0.2908, allocations: 132.7 kB / 433.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001683/0.291, allocations: 50.55 kB / 433.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.152e-05/0.2911, allocations: 28.92 kB / 433.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.2911, allocations: 0 / 433.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.2911, allocations: 34.56 kB / 433.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.2911, allocations: 0 / 433.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.000309/0.2914, allocations: 89.66 kB / 433.7 MB, free: 3.922 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.776e-05/0.2915, allocations: 55.34 kB / 433.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.381e-05/0.2916, allocations: 109.8 kB / 433.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.2916, allocations: 25.7 kB / 433.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.101e-05/0.2916, allocations: 88.14 kB / 434 MB, free: 3.617 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.2916, allocations: 7.984 kB / 434 MB, free: 3.609 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.343e-05/0.2917, allocations: 17.72 kB / 434 MB, free: 3.586 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.2919, allocations: 310.8 kB / 434.3 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.789e-05/0.2919, allocations: 8 kB / 434.3 MB, free: 3.266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.866e-05/0.2919, allocations: 31.42 kB / 434.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.699e-05/0.292, allocations: 39.38 kB / 434.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.292, allocations: 0 / 434.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.561e-05/0.2921, allocations: 65.52 kB / 434.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.2921, allocations: 11.94 kB / 434.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.2921, allocations: 0 / 434.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.2921, allocations: 0 / 434.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.084e-05/0.2922, allocations: 8 kB / 434.4 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.2922, allocations: 7.984 kB / 434.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.919e-05/0.2922, allocations: 0 / 434.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.2922, allocations: 4 kB / 434.5 MB, free: 3.07 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: 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 (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.0001115/0.2923, allocations: 114 kB / 434.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.2925, allocations: 77.55 kB / 434.6 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.936e-05/0.2925, allocations: 4 kB / 434.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2925, allocations: 0 / 434.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2925, allocations: 0 / 434.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2925, allocations: 4 kB / 434.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001074/0.2926, allocations: 128.7 kB / 434.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2926, allocations: 0 / 434.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.143e-05/0.2927, allocations: 11.98 kB / 434.8 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.2927, allocations: 3.938 kB / 434.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/0.2927, allocations: 0 / 434.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2927, allocations: 0 / 434.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2927, allocations: 8.312 kB / 434.8 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001918/0.2929, allocations: 96.98 kB / 434.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.157e-05/0.2929, allocations: 3.953 kB / 434.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.186e-05/0.2929, allocations: 11.92 kB / 434.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.443e-05/0.293, allocations: 8 kB / 434.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.456e-06/0.293, allocations: 0 / 434.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.293, allocations: 0 / 434.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.155e-05/0.293, allocations: 83.28 kB / 435 MB, free: 2.441 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.293, allocations: 0 / 435 MB, free: 2.441 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001893/0.2932, allocations: 8 kB / 435 MB, free: 2.434 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: 1 (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.0006271/0.2938, allocations: 0.6437 MB / 435.7 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001569/0.294, allocations: 35.91 kB / 435.7 MB, free: 1.727 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.294, allocations: 4 kB / 435.7 MB, free: 1.723 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.32e-07/0.294, allocations: 0 / 435.7 MB, free: 1.723 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.2943, allocations: 23.92 kB / 435.7 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.2955, allocations: 1.174 MB / 436.9 MB, free: 436 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.472e-05/0.2956, allocations: 67.66 kB / 437 MB, free: 348 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.655e-05/0.2956, allocations: 4 kB / 437 MB, free: 344 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.499e-05/0.2956, allocations: 15.42 kB / 437 MB, free: 328 kB / 334.1 MB Notification: Performance of SimCode: time 6.72e-07/0.2956, allocations: 0 / 437 MB, free: 328 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0301/0.3257, allocations: 1.914 MB / 438.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.94, allocations: 12 kB / 438.9 MB, free: 14.53 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.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:time,assignClock1.u,assignClock1.y,step.y,periodicClock1.period,step.height [Calling sys.exit(0), Time elapsed: 13.40941245801514]