Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001343/0.001343, 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.001437/0.001437, allocations: 202.1 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.407/1.407, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 43.94 kB / 377.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2581, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003716/0.2618, allocations: 2.039 MB / 433.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009766/0.2627, allocations: 0.5065 MB / 433.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.2628, allocations: 7.938 kB / 433.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001017/0.2629, allocations: 15.8 kB / 433.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.343e-05/0.263, allocations: 27.72 kB / 433.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.2633, allocations: 59.88 kB / 433.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001893/0.2635, allocations: 123.6 kB / 433.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.2636, allocations: 49.92 kB / 433.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.985e-05/0.2637, allocations: 47.84 kB / 433.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.887e-05/0.2638, allocations: 59.7 kB / 434 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.2638, allocations: 8 kB / 434 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.26e-05/0.2639, allocations: 15.94 kB / 434 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.915e-05/0.2639, allocations: 23.92 kB / 434 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.086e-05/0.264, allocations: 51.72 kB / 434.1 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002088/0.2642, allocations: 131.8 kB / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.2642, allocations: 0 / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2642, allocations: 0 / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.2642, allocations: 4 kB / 434.2 MB, free: 3.473 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005989/0.2648, allocations: 360.4 kB / 434.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.2648, allocations: 8.031 kB / 434.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/0.2649, allocations: 50.67 kB / 434.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.876e-05/0.265, allocations: 16.84 kB / 434.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.2652, allocations: 154.3 kB / 434.8 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.2652, allocations: 4.375 kB / 434.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.478e-05/0.2653, allocations: 20.31 kB / 434.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005938/0.2659, allocations: 243.4 kB / 435.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.2659, allocations: 0 / 435.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.2659, allocations: 7.938 kB / 435.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.403e-06/0.2659, allocations: 4 kB / 435.1 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002407/0.2662, allocations: 78.61 kB / 435.1 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007834/0.2669, allocations: 0.5232 MB / 435.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003577/0.2673, allocations: 135.9 kB / 435.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/0.2675, allocations: 78.56 kB / 435.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.2675, allocations: 0 / 435.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.704e-05/0.2676, allocations: 38.56 kB / 435.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.2676, allocations: 0 / 435.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005329/0.2681, allocations: 189.3 kB / 436.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.651e-05/0.2682, allocations: 114.8 kB / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.2683, allocations: 138.1 kB / 436.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.2683, allocations: 25.7 kB / 436.4 MB, free: 1.086 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.325e-05/0.2684, allocations: 120 kB / 436.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.2684, allocations: 31.78 kB / 436.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.325e-05/0.2685, allocations: 33.72 kB / 436.6 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.2686, allocations: 322.8 kB / 436.9 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.2688, allocations: 40.09 kB / 436.9 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.2689, allocations: 141.6 kB / 437 MB, free: 352 kB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004245/0.2694, allocations: 201.5 kB / 437.2 MB, free: 100 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.2694, allocations: 3.938 kB / 437.2 MB, free: 96 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004065/0.2698, allocations: 197.8 kB / 437.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.2698, allocations: 11.94 kB / 437.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.2698, allocations: 4.469 kB / 437.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.2698, allocations: 8 kB / 437.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.27, allocations: 47.84 kB / 437.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.27, allocations: 8 kB / 437.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.2701, allocations: 23.88 kB / 437.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.2701, allocations: 8 kB / 437.6 MB, free: 15.78 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001258/0.2702, allocations: 133.5 kB / 437.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.2704, allocations: 89.58 kB / 437.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000144/0.2706, allocations: 20.7 kB / 437.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.2706, allocations: 4 kB / 437.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2706, allocations: 0 / 437.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.2706, allocations: 4 kB / 437.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002799/0.2708, allocations: 168.5 kB / 438 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2708, allocations: 0 / 438 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.2711, allocations: 51.91 kB / 438 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2711, allocations: 0 / 438 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.2711, allocations: 3.984 kB / 438 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.2711, allocations: 4 kB / 438 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2711, allocations: 0 / 438 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000669/0.2718, allocations: 383.4 kB / 438.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.2719, allocations: 11.97 kB / 438.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.89e-05/0.2719, allocations: 11.94 kB / 438.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.272, allocations: 4 kB / 438.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.833e-05/0.2721, allocations: 11.98 kB / 438.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.2721, allocations: 4 kB / 438.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.808e-05/0.2722, allocations: 106 kB / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2722, allocations: 0 / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003262/0.2725, allocations: 35.95 kB / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0008718/0.2734, allocations: 0.9155 MB / 439.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000354/0.2737, allocations: 128.6 kB / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2737, allocations: 96 / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.982e-05/0.2738, allocations: 32.33 kB / 439.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004979/0.2743, allocations: 67.84 kB / 439.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003008/0.2773, allocations: 2.101 MB / 441.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.2774, allocations: 106.6 kB / 441.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.113e-05/0.2775, allocations: 13.08 kB / 441.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.768e-05/0.2776, allocations: 39.42 kB / 442 MB, free: 11.06 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2776, allocations: 0 / 442 MB, free: 11.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03171/0.3093, allocations: 3.64 MB / 445.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.22, allocations: 0 / 445.6 MB, free: 7.602 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w [Calling sys.exit(0), Time elapsed: 13.795201049011666]