Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.001811/0.001811, allocations: 115.6 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.00242/0.00242, allocations: 213.4 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.459/1.459, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 55.91 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2865, allocations: 53.37 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002986/0.2894, allocations: 1.455 MB / 432.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003202/0.2898, allocations: 99.62 kB / 432.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.977e-05/0.2898, allocations: 0 / 432.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.67e-05/0.2899, allocations: 7.922 kB / 432.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.788e-05/0.2899, allocations: 3.938 kB / 432.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.2901, allocations: 23.98 kB / 432.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.878e-05/0.2902, allocations: 27.92 kB / 432.8 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.2903, allocations: 11.92 kB / 432.8 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.879e-05/0.2904, allocations: 8 kB / 432.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.653e-05/0.2904, allocations: 11.92 kB / 432.8 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.22e-05/0.2904, allocations: 4 kB / 432.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.887e-06/0.2904, allocations: 0 / 432.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.661e-05/0.2905, allocations: 11.94 kB / 432.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.244e-05/0.2905, allocations: 11.92 kB / 432.8 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.813e-05/0.2906, allocations: 31.22 kB / 432.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2906, allocations: 4 kB / 432.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2906, allocations: 0 / 432.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.2906, allocations: 3.938 kB / 432.9 MB, free: 5.16 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.0004272/0.291, allocations: 271.3 kB / 433.1 MB, free: 4.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.2911, allocations: 8.031 kB / 433.1 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.286e-05/0.2911, allocations: 30.75 kB / 433.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.774e-05/0.2911, allocations: 8.891 kB / 433.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.2914, allocations: 126.5 kB / 433.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.2914, allocations: 4.375 kB / 433.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.2914, allocations: 384 / 433.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003241/0.2917, allocations: 111.8 kB / 433.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.2917, allocations: 7.875 kB / 433.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.2917, allocations: 0 / 433.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2917, allocations: 4 kB / 433.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.935e-05/0.2918, allocations: 23.92 kB / 433.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001571/0.292, allocations: 132.7 kB / 433.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.2921, allocations: 54.62 kB / 433.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.307e-05/0.2922, allocations: 16.86 kB / 433.6 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.2922, allocations: 0 / 433.6 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/0.2923, allocations: 42.55 kB / 433.7 MB, free: 4.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.2923, allocations: 0 / 433.7 MB, free: 4.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002469/0.2925, allocations: 73.55 kB / 433.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.2926, allocations: 51.41 kB / 433.8 MB, free: 4.055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.269e-05/0.2927, allocations: 105.8 kB / 433.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.2927, allocations: 25.7 kB / 433.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.397e-05/0.2928, allocations: 84.14 kB / 434 MB, free: 3.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.193e-06/0.2928, allocations: 8 kB / 434 MB, free: 3.816 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.307e-05/0.2928, allocations: 17.72 kB / 434 MB, free: 3.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.2929, allocations: 314.8 kB / 434.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.458e-05/0.2929, allocations: 8 kB / 434.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.395e-05/0.293, allocations: 23.44 kB / 434.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.7e-05/0.293, allocations: 35.38 kB / 434.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.293, allocations: 0 / 434.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.484e-05/0.2931, allocations: 61.52 kB / 434.5 MB, free: 3.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.2931, allocations: 11.94 kB / 434.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.2931, allocations: 0 / 434.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.2932, allocations: 0 / 434.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.559e-05/0.2932, allocations: 16.11 kB / 434.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.2932, allocations: 0 / 434.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.776e-05/0.2933, allocations: 0 / 434.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.2933, allocations: 4 kB / 434.5 MB, free: 3.289 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: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.531e-05/0.2933, allocations: 117.8 kB / 434.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.2935, allocations: 57.81 kB / 434.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.686e-05/0.2935, allocations: 12.31 kB / 434.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2935, allocations: 4 kB / 434.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2935, allocations: 8 kB / 434.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.2935, allocations: 3.984 kB / 434.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.702e-05/0.2936, allocations: 128.7 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2936, allocations: 0 / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.06e-05/0.2937, allocations: 11.98 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.2937, allocations: 3.938 kB / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.2937, allocations: 0 / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2937, allocations: 0 / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2937, allocations: 0 / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.2938, allocations: 89.06 kB / 434.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.233e-05/0.2938, allocations: 7.938 kB / 434.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.2938, allocations: 3.938 kB / 434.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.846e-05/0.2939, allocations: 7.938 kB / 434.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.637e-06/0.2939, allocations: 0 / 434.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.2939, allocations: 4 kB / 434.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.642e-05/0.2939, allocations: 83.27 kB / 435 MB, free: 2.672 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2939, allocations: 0 / 435 MB, free: 2.672 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001901/0.2941, allocations: 8 kB / 435 MB, free: 2.664 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: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0004668/0.2946, allocations: 0.6241 MB / 435.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001174/0.2947, allocations: 23.92 kB / 435.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.2947, allocations: 4.25 kB / 435.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.2947, allocations: 4 kB / 435.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.2949, allocations: 20.02 kB / 435.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.296, allocations: 1.142 MB / 436.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.2963, allocations: 0.6884 MB / 437.5 MB, free: 4 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.423e-05/0.2963, allocations: 0 / 437.5 MB, free: 4 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.409e-05/0.2964, allocations: 19.5 kB / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2964, allocations: 0 / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02736/0.3238, allocations: 1.348 MB / 438.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.13, allocations: 7.031 kB / 438.9 MB, free: 14.76 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_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_IntegerSignals_TimeBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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,periodicClock1.period,step.startTime,assignClock1.u,assignClock1.y,step.y [Calling sys.exit(0), Time elapsed: 13.769475569999486]