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.001821/0.001821, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.002155/0.002155, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.57/1.57, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.001578/0.001578, allocations: 39.94 kB / 377.8 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3494, allocations: 53.36 MB / 431.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004326/0.3538, allocations: 2.098 MB / 433.2 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.3551, allocations: 0.5453 MB / 433.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001648/0.3553, allocations: 0 / 433.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.3554, allocations: 19.8 kB / 433.8 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.3555, allocations: 27.72 kB / 433.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003652/0.3559, allocations: 67.48 kB / 433.9 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000268/0.3562, allocations: 131.4 kB / 434 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.3564, allocations: 43.69 kB / 434 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.3565, allocations: 55.83 kB / 434.1 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.3566, allocations: 55.72 kB / 434.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.216e-05/0.3566, allocations: 8 kB / 434.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.586e-05/0.3566, allocations: 12 kB / 434.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.668e-05/0.3567, allocations: 23.92 kB / 434.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.907e-05/0.3568, allocations: 59.66 kB / 434.3 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000301/0.3571, allocations: 143.2 kB / 434.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3571, allocations: 0 / 434.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3571, allocations: 0 / 434.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.3571, allocations: 3.984 kB / 434.4 MB, free: 3.598 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.0007509/0.3578, allocations: 357.8 kB / 434.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.3579, allocations: 8.031 kB / 434.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.41e-05/0.358, allocations: 46.73 kB / 434.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.762e-05/0.358, allocations: 16.84 kB / 434.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003551/0.3584, allocations: 150.3 kB / 435 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.3584, allocations: 8.375 kB / 435 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.139e-05/0.3584, allocations: 16.38 kB / 435 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005509/0.359, allocations: 243.4 kB / 435.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.359, allocations: 3.984 kB / 435.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.359, allocations: 8 kB / 435.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.359, allocations: 4 kB / 435.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002522/0.3593, allocations: 83.86 kB / 435.3 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007706/0.36, allocations: 0.5388 MB / 435.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003692/0.3604, allocations: 135.9 kB / 436 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.3606, allocations: 74.62 kB / 436.1 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.3606, allocations: 4 kB / 436.1 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.3606, allocations: 38.5 kB / 436.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.3606, allocations: 4 kB / 436.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005602/0.3612, allocations: 181.3 kB / 436.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.3613, allocations: 114.8 kB / 436.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.3615, allocations: 141.2 kB / 436.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.3615, allocations: 25.7 kB / 436.6 MB, free: 1.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.3616, allocations: 120.4 kB / 436.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.61e-05/0.3616, allocations: 31.77 kB / 436.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-05/0.3617, allocations: 33.72 kB / 436.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.3619, allocations: 327 kB / 437.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.362, allocations: 39.91 kB / 437.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.3622, allocations: 147.9 kB / 437.2 MB, free: 456 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.0004718/0.3627, allocations: 199.2 kB / 437.4 MB, free: 208 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.3627, allocations: 3.938 kB / 437.4 MB, free: 204 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004447/0.3631, allocations: 201.2 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.3631, allocations: 4 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.3631, allocations: 4 kB / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/0.3632, allocations: 4 kB / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.3633, allocations: 52.33 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.3634, allocations: 4 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.3635, allocations: 23.88 kB / 437.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.3635, allocations: 12 kB / 437.7 MB, free: 15.89 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.0001652/0.3637, allocations: 137.7 kB / 437.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.3639, allocations: 85.58 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.683e-05/0.3639, allocations: 20.7 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3639, allocations: 4 kB / 438 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3639, allocations: 4.234 kB / 438 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3639, allocations: 0 / 438 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003119/0.3642, allocations: 188.5 kB / 438.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.3642, allocations: 3.984 kB / 438.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002177/0.3645, allocations: 39.97 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.3645, allocations: 3.984 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.3645, allocations: 4 kB / 438.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3645, allocations: 0 / 438.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.3645, allocations: 3.938 kB / 438.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006441/0.3651, allocations: 389.6 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.558e-05/0.3652, allocations: 7.984 kB / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.3652, allocations: 8 kB / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.3653, allocations: 4 kB / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/0.3654, allocations: 19.98 kB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-06/0.3654, allocations: 0 / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.028e-05/0.3655, allocations: 107.2 kB / 438.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3655, allocations: 0 / 438.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003437/0.3658, allocations: 32.05 kB / 438.8 MB, free: 14.77 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.0009216/0.3667, allocations: 0.9193 MB / 439.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003963/0.3671, allocations: 124.6 kB / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3671, allocations: 0 / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.3672, allocations: 31.91 kB / 439.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005434/0.3678, allocations: 55.92 kB / 439.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003007/0.3708, allocations: 2.108 MB / 442 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/0.3712, allocations: 0.7162 MB / 442.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.23e-05/0.3713, allocations: 13.08 kB / 442.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.37e-05/0.3714, allocations: 39.42 kB / 442.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of SimCode: time 1.934e-06/0.3714, allocations: 0 / 442.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03514/0.4065, allocations: 3.193 MB / 446 MB, free: 7.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.24, allocations: 11.25 kB / 446 MB, free: 7.508 MB / 350.1 MB " [Timeout remaining time 648] (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: 15.066647748000833]