Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.001323/0.001323, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001444/0.001444, allocations: 211.6 kB / 23.73 MB, free: 4.523 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.397/1.397, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 55.91 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2543, allocations: 53.37 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002842/0.2571, allocations: 1.53 MB / 432.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003781/0.2575, allocations: 131.5 kB / 432.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.206e-05/0.2576, allocations: 0 / 432.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.964e-05/0.2576, allocations: 11.92 kB / 432.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.2577, allocations: 15.86 kB / 432.8 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002159/0.2579, allocations: 35.86 kB / 432.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.032e-05/0.258, allocations: 35.89 kB / 432.8 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.741e-05/0.2581, allocations: 12 kB / 432.8 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.79e-05/0.2582, allocations: 15.92 kB / 432.9 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.882e-05/0.2582, allocations: 19.81 kB / 432.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.2582, allocations: 4 kB / 432.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.278e-05/0.2582, allocations: 4 kB / 432.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.639e-05/0.2583, allocations: 11.98 kB / 432.9 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.216e-05/0.2583, allocations: 15.88 kB / 432.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.2584, allocations: 53.38 kB / 433 MB, free: 4.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2584, allocations: 0 / 433 MB, free: 4.762 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.2584, allocations: 0 / 433 MB, free: 4.762 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.2584, allocations: 4 kB / 433 MB, free: 4.758 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004458/0.2589, allocations: 298 kB / 433.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.2589, allocations: 12.03 kB / 433.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.143e-05/0.259, allocations: 38.69 kB / 433.3 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.945e-05/0.259, allocations: 12.89 kB / 433.3 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.2592, allocations: 126.4 kB / 433.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.2592, allocations: 4.375 kB / 433.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.2592, allocations: 4.375 kB / 433.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.2595, allocations: 117.6 kB / 433.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.2595, allocations: 3.938 kB / 433.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.2595, allocations: 0 / 433.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.2595, allocations: 4 kB / 433.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.319e-05/0.2596, allocations: 19.92 kB / 433.6 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000301/0.2599, allocations: 232.8 kB / 433.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.2601, allocations: 65.06 kB / 433.9 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.978e-05/0.2602, allocations: 25.78 kB / 433.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.2602, allocations: 0 / 433.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.2602, allocations: 42.55 kB / 434 MB, free: 3.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.2602, allocations: 0 / 434 MB, free: 3.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002335/0.2604, allocations: 81.69 kB / 434 MB, free: 3.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/0.2605, allocations: 77.11 kB / 434.1 MB, free: 3.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.2606, allocations: 140.3 kB / 434.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.2606, allocations: 25.7 kB / 434.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.837e-05/0.2607, allocations: 88.27 kB / 434.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.269e-05/0.2607, allocations: 11.94 kB / 434.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-05/0.2607, allocations: 17.72 kB / 434.4 MB, free: 3.125 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.2609, allocations: 310.8 kB / 434.7 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.485e-05/0.2609, allocations: 15.98 kB / 434.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.741e-05/0.261, allocations: 39.34 kB / 434.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.22e-05/0.261, allocations: 47.36 kB / 434.8 MB, free: 2.688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.261, allocations: 3.938 kB / 434.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001205/0.2612, allocations: 65.62 kB / 434.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.2612, allocations: 4 kB / 434.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.2612, allocations: 0 / 434.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2612, allocations: 4 kB / 434.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.374e-05/0.2612, allocations: 7.984 kB / 434.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.2612, allocations: 7.938 kB / 434.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.281e-05/0.2613, allocations: 8.078 kB / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.2613, allocations: 4 kB / 434.9 MB, free: 2.578 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: 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.571e-05/0.2614, allocations: 121.8 kB / 435 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.401e-05/0.2614, allocations: 41.7 kB / 435 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.64e-05/0.2615, allocations: 16.33 kB / 435.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.2615, allocations: 0 / 435.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2615, allocations: 0 / 435.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2615, allocations: 4 kB / 435.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.2617, allocations: 140.6 kB / 435.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2617, allocations: 0 / 435.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.891e-05/0.2617, allocations: 15.98 kB / 435.2 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2617, allocations: 3.938 kB / 435.2 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-06/0.2617, allocations: 0 / 435.2 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.2617, allocations: 8 kB / 435.2 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2617, allocations: 0 / 435.2 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.2619, allocations: 168.3 kB / 435.4 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.094e-05/0.2619, allocations: 11.94 kB / 435.4 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.2619, allocations: 3.984 kB / 435.4 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.977e-05/0.262, allocations: 4 kB / 435.4 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.131e-05/0.262, allocations: 0 / 435.4 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.262, allocations: 8 kB / 435.4 MB, free: 1.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.068e-05/0.2621, allocations: 103.2 kB / 435.5 MB, free: 1.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2621, allocations: 0 / 435.5 MB, free: 1.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002199/0.2623, allocations: 4 kB / 435.5 MB, free: 1.852 MB / 334.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.0004663/0.2628, allocations: 0.7093 MB / 436.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001249/0.2629, allocations: 27.92 kB / 436.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2629, allocations: 256 / 436.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.983e-05/0.2629, allocations: 8 kB / 436.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.2632, allocations: 29.48 kB / 436.3 MB, free: 1.055 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.2645, allocations: 1.326 MB / 437.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.851e-05/0.2645, allocations: 75.33 kB / 437.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.259e-05/0.2645, allocations: 4.062 kB / 437.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.312e-05/0.2646, allocations: 19.47 kB / 437.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2646, allocations: 0 / 437.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02697/0.2916, allocations: 2.029 MB / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.02, allocations: 0 / 439.8 MB, free: 13.62 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 13.531503302016063]