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.001784/0.001784, allocations: 112 kB / 20.43 MB, free: 1.457 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.00209/0.00209, allocations: 181.3 kB / 23.72 MB, free: 4.699 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.531/1.531, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.00156/0.00156, allocations: 43.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.309, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003625/0.3126, allocations: 2.093 MB / 424.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009999/0.3136, allocations: 0.5026 MB / 425.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.3137, allocations: 7.938 kB / 425.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.3139, allocations: 19.8 kB / 425.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.626e-05/0.314, allocations: 31.72 kB / 425.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002935/0.3142, allocations: 51.88 kB / 425.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002307/0.3145, allocations: 131.5 kB / 425.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.3146, allocations: 38 kB / 425.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.883e-05/0.3147, allocations: 55.73 kB / 425.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.3148, allocations: 51.75 kB / 425.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.217e-05/0.3149, allocations: 12 kB / 425.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.331e-05/0.3149, allocations: 15.94 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.501e-05/0.3149, allocations: 27.92 kB / 425.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.549e-05/0.315, allocations: 59.67 kB / 425.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.3153, allocations: 135.8 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3153, allocations: 0 / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3153, allocations: 0 / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.3153, allocations: 0 / 425.8 MB, free: 11.36 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.0006619/0.3159, allocations: 361.7 kB / 426.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.316, allocations: 12.03 kB / 426.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.347e-05/0.316, allocations: 46.73 kB / 426.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.984e-05/0.3161, allocations: 20.84 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000254/0.3163, allocations: 149.5 kB / 426.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.3164, allocations: 12.38 kB / 426.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.067e-05/0.3164, allocations: 12.38 kB / 426.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004967/0.3169, allocations: 242.6 kB / 426.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.3169, allocations: 0 / 426.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.3169, allocations: 4 kB / 426.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.3169, allocations: 4 kB / 426.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002702/0.3172, allocations: 79.88 kB / 426.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006739/0.3179, allocations: 0.5427 MB / 427.3 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003757/0.3182, allocations: 151.9 kB / 427.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.3184, allocations: 66.64 kB / 427.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.3184, allocations: 7.984 kB / 427.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.3185, allocations: 34.56 kB / 427.6 MB, free: 9.445 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.403e-06/0.3185, allocations: 0 / 427.6 MB, free: 9.445 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005351/0.319, allocations: 181.4 kB / 427.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.405e-05/0.3191, allocations: 114.8 kB / 427.8 MB, free: 9.125 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.3192, allocations: 140.8 kB / 428 MB, free: 8.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.3193, allocations: 29.7 kB / 428 MB, free: 8.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.584e-05/0.3193, allocations: 116.1 kB / 428.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/0.3194, allocations: 27.78 kB / 428.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.08e-05/0.3194, allocations: 37.7 kB / 428.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.3196, allocations: 322.8 kB / 428.5 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.3197, allocations: 35.97 kB / 428.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.3199, allocations: 144.7 kB / 428.7 MB, free: 8.211 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.0004231/0.3203, allocations: 201.5 kB / 428.9 MB, free: 7.965 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.3203, allocations: 3.938 kB / 428.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003969/0.3207, allocations: 197.5 kB / 429.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.3207, allocations: 8 kB / 429.1 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.3207, allocations: 4 kB / 429.1 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.3208, allocations: 4.375 kB / 429.1 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.321, allocations: 47.91 kB / 429.1 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.321, allocations: 7.938 kB / 429.1 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.3211, allocations: 27.81 kB / 429.2 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.3211, allocations: 11.94 kB / 429.2 MB, free: 7.652 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.0001317/0.3212, allocations: 134 kB / 429.3 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001753/0.3214, allocations: 93.53 kB / 429.4 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.322e-05/0.3215, allocations: 20.7 kB / 429.4 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3215, allocations: 0 / 429.4 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3215, allocations: 0 / 429.4 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.3215, allocations: 4 kB / 429.4 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002845/0.3218, allocations: 184.5 kB / 429.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.3218, allocations: 0 / 429.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.322, allocations: 51.91 kB / 429.7 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.322, allocations: 4 kB / 429.7 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.322, allocations: 0 / 429.7 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.675e-06/0.322, allocations: 7.984 kB / 429.7 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.322, allocations: 0 / 429.7 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005686/0.3226, allocations: 386.7 kB / 430 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.328e-05/0.3226, allocations: 15.92 kB / 430.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.3226, allocations: 8 kB / 430.1 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.3228, allocations: 4 kB / 430.1 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.611e-05/0.3228, allocations: 7.984 kB / 430.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-06/0.3228, allocations: 4 kB / 430.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.981e-05/0.3229, allocations: 103.3 kB / 430.2 MB, free: 6.566 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3229, allocations: 0 / 430.2 MB, free: 6.566 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000333/0.3232, allocations: 32 kB / 430.2 MB, free: 6.535 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.0009134/0.3241, allocations: 0.9196 MB / 431.1 MB, free: 5.586 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003707/0.3245, allocations: 127.7 kB / 431.3 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3245, allocations: 0 / 431.3 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.808e-05/0.3246, allocations: 32.84 kB / 431.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005524/0.3252, allocations: 64.08 kB / 431.4 MB, free: 5.367 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002807/0.328, allocations: 2.094 MB / 433.5 MB, free: 3.102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.3284, allocations: 0.724 MB / 434.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.586e-05/0.3284, allocations: 13.08 kB / 434.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.26e-05/0.3285, allocations: 39.42 kB / 434.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3285, allocations: 0 / 434.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03244/0.3609, allocations: 3.203 MB / 437.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.01, allocations: 23.92 kB / 437.5 MB, free: 15.24 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.820560518001002]