Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008426/0.0008426, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 157.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9022/0.9022, allocations: 173.4 MB / 200.5 MB, free: 9.402 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.283e-05/1.422e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.001677/0.001691, allocations: 1.508 MB / 319.9 MB, free: 4.82 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002827/0.001974, allocations: 143.4 kB / 320.1 MB, free: 4.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.621e-05/0.00204, allocations: 7.938 kB / 320.1 MB, free: 4.672 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.795e-05/0.002078, allocations: 11.86 kB / 320.1 MB, free: 4.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.002196, allocations: 3.938 kB / 320.1 MB, free: 4.656 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.002381, allocations: 35.89 kB / 320.1 MB, free: 4.621 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.179e-05/0.002463, allocations: 35.86 kB / 320.2 MB, free: 4.586 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.305e-05/0.002546, allocations: 19.91 kB / 320.2 MB, free: 4.566 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.257e-05/0.002588, allocations: 23.92 kB / 320.2 MB, free: 4.543 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.518e-05/0.002624, allocations: 7.984 kB / 320.2 MB, free: 4.535 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.002643, allocations: 0 / 320.2 MB, free: 4.535 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.373e-06/0.002651, allocations: 4 kB / 320.2 MB, free: 4.531 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.203e-05/0.002693, allocations: 11.94 kB / 320.2 MB, free: 4.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.413e-05/0.002717, allocations: 11.92 kB / 320.2 MB, free: 4.508 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.614e-05/0.002813, allocations: 39.94 kB / 320.3 MB, free: 4.469 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.002815, allocations: 3.938 kB / 320.3 MB, free: 4.465 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.002816, allocations: 0 / 320.3 MB, free: 4.465 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.00282, allocations: 8 kB / 320.3 MB, free: 4.457 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003416/0.003161, allocations: 290.1 kB / 320.6 MB, free: 4.141 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.003197, allocations: 8.922 kB / 320.6 MB, free: 4.133 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.035e-05/0.003227, allocations: 42.73 kB / 320.6 MB, free: 4.082 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.069e-05/0.003248, allocations: 8.891 kB / 320.6 MB, free: 4.074 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.003403, allocations: 133.6 kB / 320.8 MB, free: 3.918 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.977e-06/0.003412, allocations: 4.375 kB / 320.8 MB, free: 3.914 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-06/0.003421, allocations: 4.375 kB / 320.8 MB, free: 3.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002158/0.003637, allocations: 121.5 kB / 320.9 MB, free: 3.773 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.003646, allocations: 4.172 kB / 320.9 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.533e-06/0.003652, allocations: 384 / 320.9 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.003659, allocations: 4.125 kB / 320.9 MB, free: 3.766 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.258e-05/0.003701, allocations: 23.92 kB / 320.9 MB, free: 3.742 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00023/0.003931, allocations: 220.9 kB / 321.1 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001324/0.004064, allocations: 65.14 kB / 321.2 MB, free: 3.398 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.719e-05/0.004101, allocations: 25.77 kB / 321.2 MB, free: 3.367 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.004116, allocations: 4 kB / 321.2 MB, free: 3.363 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.567e-05/0.004132, allocations: 34.5 kB / 321.3 MB, free: 3.32 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.004133, allocations: 0 / 321.3 MB, free: 3.32 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001527/0.004285, allocations: 81.55 kB / 321.4 MB, free: 3.234 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.004324, allocations: 81.11 kB / 321.4 MB, free: 3.137 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.402e-05/0.004398, allocations: 133.5 kB / 321.6 MB, free: 2.996 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.408e-06/0.004407, allocations: 33.77 kB / 321.6 MB, free: 2.957 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.576e-05/0.004443, allocations: 92.08 kB / 321.7 MB, free: 2.863 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.985e-06/0.004451, allocations: 7.938 kB / 321.7 MB, free: 2.855 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.387e-05/0.004475, allocations: 21.66 kB / 321.7 MB, free: 2.828 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.17e-05/0.004547, allocations: 310.8 kB / 322 MB, free: 2.516 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.746e-05/0.004564, allocations: 8 kB / 322 MB, free: 2.508 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.391e-05/0.004578, allocations: 7.984 kB / 322 MB, free: 2.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.078e-05/0.004609, allocations: 16.84 kB / 322 MB, free: 2.48 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.00461, allocations: 0 / 322 MB, free: 2.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.946e-05/0.00466, allocations: 53.69 kB / 322.1 MB, free: 2.422 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.004671, allocations: 8 kB / 322.1 MB, free: 2.414 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.004674, allocations: 0 / 322.1 MB, free: 2.414 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.004684, allocations: 0 / 322.1 MB, free: 2.414 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.821e-05/0.004712, allocations: 4 kB / 322.1 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.004716, allocations: 3.938 kB / 322.1 MB, free: 2.406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.184e-05/0.004728, allocations: 0 / 322.1 MB, free: 2.406 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-06/0.004732, allocations: 0 / 322.1 MB, free: 2.406 MB / 282.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: 1 (step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 5.275e-05/0.004785, allocations: 117.8 kB / 322.2 MB, free: 2.281 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.722e-05/0.004822, allocations: 57.61 kB / 322.3 MB, free: 2.219 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.255e-05/0.004845, allocations: 8.344 kB / 322.3 MB, free: 2.203 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.004846, allocations: 0 / 322.3 MB, free: 2.203 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.00485, allocations: 4 kB / 322.3 MB, free: 2.199 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.004853, allocations: 0 / 322.3 MB, free: 2.199 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001006/0.004953, allocations: 136.7 kB / 322.4 MB, free: 2.023 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.004954, allocations: 0 / 322.4 MB, free: 2.023 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.327e-05/0.004977, allocations: 11.98 kB / 322.4 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.00498, allocations: 3.938 kB / 322.4 MB, free: 2.008 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-06/0.004986, allocations: 4 kB / 322.5 MB, free: 2.004 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.004988, allocations: 8 kB / 322.5 MB, free: 1.996 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.004989, allocations: 3.938 kB / 322.5 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003289/0.005318, allocations: 164.6 kB / 322.6 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.584e-05/0.005344, allocations: 23.91 kB / 322.6 MB, free: 1.789 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.958e-06/0.005354, allocations: 4 kB / 322.7 MB, free: 1.785 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.931e-05/0.005383, allocations: 0 / 322.7 MB, free: 1.785 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.087e-05/0.005404, allocations: 0 / 322.7 MB, free: 1.785 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-06/0.005408, allocations: 4 kB / 322.7 MB, free: 1.781 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.029e-05/0.005448, allocations: 107.2 kB / 322.8 MB, free: 1.676 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005448, allocations: 4 kB / 322.8 MB, free: 1.672 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001347/0.005583, allocations: 4 kB / 322.8 MB, free: 1.668 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.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.0002353/0.005818, allocations: 0.7015 MB / 323.5 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.634e-05/0.005894, allocations: 19.98 kB / 323.5 MB, free: 0.918 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.005896, allocations: 0 / 323.5 MB, free: 0.918 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.764e-05/0.005913, allocations: 19.86 kB / 323.5 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.006133, allocations: 16.03 kB / 323.5 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000698/0.006831, allocations: 1.251 MB / 324.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.56e-05/0.006887, allocations: 79.27 kB / 324.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.308e-05/0.0069, allocations: 0 / 324.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/0.006931, allocations: 12.5 kB / 324.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.006931, allocations: 0 / 324.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01391/0.02085, allocations: 2.13 MB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.815/6.836, allocations: 7.062 kB / 327 MB, free: 13.43 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,step.startTime,assignClock.u,assignClock.y,sample1.y,step.y [Calling sys.exit(0), Time elapsed: 8.643515625037253]