Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001676/0.001676, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002061/0.002061, allocations: 193.9 kB / 23.71 MB, free: 4.406 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.465/1.465, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.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.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 47.92 kB / 370.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2531, allocations: 52.17 MB / 422.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003416/0.2566, allocations: 2.034 MB / 424.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008696/0.2574, allocations: 482.8 kB / 425.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.455e-05/0.2575, allocations: 8 kB / 425.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.2576, allocations: 15.8 kB / 425.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.738e-05/0.2577, allocations: 31.72 kB / 425.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.258, allocations: 51.88 kB / 425.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000186/0.2582, allocations: 127.6 kB / 425.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.2583, allocations: 43.12 kB / 425.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.433e-05/0.2584, allocations: 55.8 kB / 425.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.857e-05/0.2585, allocations: 43.77 kB / 425.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.682e-05/0.2585, allocations: 12 kB / 425.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.212e-05/0.2585, allocations: 15.94 kB / 425.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.854e-05/0.2585, allocations: 27.91 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.667e-05/0.2586, allocations: 51.73 kB / 425.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002017/0.2588, allocations: 131.3 kB / 425.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2588, allocations: 0 / 425.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.2588, allocations: 0 / 425.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.2588, allocations: 0 / 425.7 MB, free: 11.25 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.00058/0.2594, allocations: 361.8 kB / 426 MB, free: 10.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2594, allocations: 8.031 kB / 426 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.789e-05/0.2595, allocations: 46.73 kB / 426.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.577e-05/0.2595, allocations: 20.84 kB / 426.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.2598, allocations: 158.2 kB / 426.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.2598, allocations: 8.375 kB / 426.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.2598, allocations: 12.38 kB / 426.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004773/0.2603, allocations: 230.7 kB / 426.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.2603, allocations: 4 kB / 426.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.2603, allocations: 11.94 kB / 426.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.2603, allocations: 4 kB / 426.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002444/0.2606, allocations: 87.81 kB / 426.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006834/0.2612, allocations: 0.5154 MB / 427.1 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.2616, allocations: 143.9 kB / 427.2 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.2618, allocations: 74.62 kB / 427.3 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.2618, allocations: 4 kB / 427.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.2618, allocations: 42.5 kB / 427.4 MB, free: 9.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.2618, allocations: 0 / 427.4 MB, free: 9.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005453/0.2624, allocations: 173.4 kB / 427.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.136e-05/0.2625, allocations: 118.7 kB / 427.6 MB, free: 9.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.2626, allocations: 136.9 kB / 427.8 MB, free: 8.895 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.2626, allocations: 33.7 kB / 427.8 MB, free: 8.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.371e-05/0.2627, allocations: 116.1 kB / 427.9 MB, free: 8.738 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.2627, allocations: 27.78 kB / 428 MB, free: 8.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.286e-05/0.2628, allocations: 33.72 kB / 428 MB, free: 8.672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.2629, allocations: 326.8 kB / 428.3 MB, free: 8.344 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.263, allocations: 35.97 kB / 428.3 MB, free: 8.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.2633, allocations: 139.3 kB / 428.5 MB, free: 8.125 MB / 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.0004243/0.2637, allocations: 205.8 kB / 428.7 MB, free: 7.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.2637, allocations: 7.938 kB / 428.7 MB, free: 7.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003861/0.2641, allocations: 197.2 kB / 428.9 MB, free: 7.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.2641, allocations: 6.812 kB / 428.9 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.2641, allocations: 4 kB / 428.9 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.2641, allocations: 4 kB / 428.9 MB, free: 7.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.2643, allocations: 47.97 kB / 428.9 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.2643, allocations: 7.938 kB / 428.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.2644, allocations: 20.28 kB / 429 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.2644, allocations: 24.38 kB / 429 MB, free: 7.559 MB / 334.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.0001246/0.2645, allocations: 137.2 kB / 429.1 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.2647, allocations: 93.5 kB / 429.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.2648, allocations: 16.72 kB / 429.2 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.2648, allocations: 4 kB / 429.2 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.2648, allocations: 0 / 429.2 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2648, allocations: 0 / 429.2 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002718/0.265, allocations: 176.5 kB / 429.4 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.265, allocations: 0 / 429.4 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002205/0.2653, allocations: 43.97 kB / 429.5 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-06/0.2653, allocations: 7.984 kB / 429.5 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.2653, allocations: 4 kB / 429.5 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.2653, allocations: 0 / 429.5 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.2653, allocations: 4 kB / 429.5 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005727/0.2659, allocations: 383.4 kB / 429.8 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.173e-05/0.2659, allocations: 11.94 kB / 429.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.2659, allocations: 4 kB / 429.9 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.266, allocations: 12.06 kB / 429.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.997e-05/0.2661, allocations: 3.984 kB / 429.9 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-06/0.2661, allocations: 4 kB / 429.9 MB, free: 6.594 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.795e-05/0.2662, allocations: 107.2 kB / 430 MB, free: 6.488 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2662, allocations: 0 / 430 MB, free: 6.488 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003199/0.2665, allocations: 27.94 kB / 430 MB, free: 6.461 MB / 334.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.0009427/0.2674, allocations: 0.9232 MB / 430.9 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003644/0.2678, allocations: 115.8 kB / 431 MB, free: 5.395 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2678, allocations: 0 / 431 MB, free: 5.395 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.2679, allocations: 32.84 kB / 431.1 MB, free: 5.363 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005238/0.2684, allocations: 72.3 kB / 431.1 MB, free: 5.293 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/0.2711, allocations: 2.104 MB / 433.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001019/0.2712, allocations: 106.7 kB / 433.4 MB, free: 2.895 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.936e-05/0.2713, allocations: 13.08 kB / 433.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.454e-05/0.2714, allocations: 39.42 kB / 433.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.2714, allocations: 0 / 433.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03264/0.304, allocations: 3.585 MB / 437 MB, free: 15.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.48, allocations: 4.062 kB / 437 MB, free: 15.43 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.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: 14.112961758859456]