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.001291/0.001291, allocations: 124 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001311/0.001311, allocations: 190.9 kB / 20.73 MB, free: 2.328 MB / 14.72 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 1.462/1.462, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001517/0.001517, allocations: 51.91 kB / 365.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09413/0.09565, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002673/0.09832, allocations: 1.508 MB / 419.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003741/0.0987, allocations: 151.5 kB / 419.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.456e-05/0.09876, allocations: 3.938 kB / 419.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.5e-05/0.09881, allocations: 7.922 kB / 419.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.09891, allocations: 11.94 kB / 419.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.09915, allocations: 39.78 kB / 419.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.09925, allocations: 39.84 kB / 419.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.439e-05/0.09933, allocations: 11.98 kB / 419.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.568e-05/0.09937, allocations: 15.92 kB / 419.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.991e-05/0.09941, allocations: 11.94 kB / 419.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.09943, allocations: 0 / 419.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.079e-05/0.09944, allocations: 4 kB / 419.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.348e-05/0.09948, allocations: 19.92 kB / 419.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.338e-05/0.09952, allocations: 23.8 kB / 419.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.09962, allocations: 47.7 kB / 419.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.09962, allocations: 0 / 419.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.09963, allocations: 0 / 419.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.09963, allocations: 0 / 419.7 MB, free: 10.71 MB / 350.1 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.0004593/0.1001, allocations: 375.1 kB / 420 MB, free: 10.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1001, allocations: 15.97 kB / 420 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.557e-05/0.1002, allocations: 34.75 kB / 420.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.501e-05/0.1002, allocations: 12.89 kB / 420.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.1004, allocations: 194.8 kB / 420.3 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.676e-06/0.1004, allocations: 4.375 kB / 420.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.1004, allocations: 4.375 kB / 420.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002635/0.1007, allocations: 117.5 kB / 420.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1007, allocations: 3.938 kB / 420.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-06/0.1007, allocations: 0 / 420.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1007, allocations: 0 / 420.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.943e-05/0.1008, allocations: 19.98 kB / 420.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002983/0.1011, allocations: 265.7 kB / 420.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.1013, allocations: 138.2 kB / 420.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.794e-05/0.1014, allocations: 29.77 kB / 420.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.1014, allocations: 3.938 kB / 420.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.1014, allocations: 38.5 kB / 420.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.1014, allocations: 4 kB / 420.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002441/0.1017, allocations: 77.56 kB / 421 MB, free: 9.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.1017, allocations: 77.11 kB / 421 MB, free: 9.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.1018, allocations: 130.1 kB / 421.2 MB, free: 8.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.1019, allocations: 33.69 kB / 421.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.978e-05/0.1019, allocations: 84.14 kB / 421.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.053e-06/0.1019, allocations: 128 / 421.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.855e-05/0.102, allocations: 25.67 kB / 421.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1021, allocations: 322.8 kB / 421.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.967e-05/0.1021, allocations: 4 kB / 421.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.326e-05/0.1022, allocations: 35.42 kB / 421.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.989e-05/0.1023, allocations: 47.36 kB / 421.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1023, allocations: 3.938 kB / 421.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001345/0.1024, allocations: 65.56 kB / 421.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.1024, allocations: 7.938 kB / 421.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1024, allocations: 4.109 kB / 421.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1024, allocations: 8 kB / 421.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.601e-05/0.1025, allocations: 8 kB / 421.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1025, allocations: 0 / 421.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.304e-05/0.1025, allocations: 4 kB / 421.8 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.1025, allocations: 0 / 421.8 MB, free: 8.25 MB / 350.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: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * 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.892e-05/0.1026, allocations: 122.4 kB / 421.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.93e-05/0.1027, allocations: 53.58 kB / 422 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.085e-05/0.1027, allocations: 12.58 kB / 422 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.1027, allocations: 4 kB / 422 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1027, allocations: 0 / 422 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.1028, allocations: 7.984 kB / 422 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001809/0.1029, allocations: 169.6 kB / 422.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1029, allocations: 0 / 422.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.156e-05/0.103, allocations: 12 kB / 422.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.103, allocations: 0 / 422.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.056e-06/0.103, allocations: 3.984 kB / 422.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.103, allocations: 4 kB / 422.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.103, allocations: 0 / 422.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001833/0.1032, allocations: 172.2 kB / 422.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.386e-05/0.1032, allocations: 89.06 kB / 422.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.1033, allocations: 7.984 kB / 422.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.857e-05/0.1033, allocations: 0 / 422.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.789e-05/0.1033, allocations: 4 kB / 422.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.1033, allocations: 0 / 422.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.537e-05/0.1034, allocations: 118 kB / 422.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1034, allocations: 0 / 422.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002262/0.1037, allocations: 4 kB / 422.6 MB, free: 7.375 MB / 350.1 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.0004888/0.1041, allocations: 0.7093 MB / 423.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001427/0.1043, allocations: 27.92 kB / 423.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1043, allocations: 0 / 423.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.684e-05/0.1043, allocations: 11.92 kB / 423.3 MB, free: 6.598 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.1046, allocations: 20.03 kB / 423.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.1059, allocations: 1.318 MB / 424.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.1062, allocations: 0.6922 MB / 425.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.646e-05/0.1063, allocations: 8 kB / 425.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.833e-05/0.1063, allocations: 15.38 kB / 425.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1063, allocations: 0 / 425.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02312/0.1294, allocations: 1.475 MB / 426.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.009/8.138, allocations: 15.44 kB / 426.9 MB, free: 3.035 MB / 350.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/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: 10.712594851851463]