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.0008841/0.0008841, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007736/0.0007736, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9345/0.9345, allocations: 173.3 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 2.134e-06/2.134e-06, allocations: 0 / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.282e-05/2.496e-05, allocations: 2.281 kB / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00294/0.002965, allocations: 2.016 MB / 320.4 MB, free: 4.355 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008432/0.003808, allocations: 490.6 kB / 320.9 MB, free: 3.871 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.003936, allocations: 3.938 kB / 320.9 MB, free: 3.867 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.004071, allocations: 19.8 kB / 320.9 MB, free: 3.848 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.741e-05/0.004149, allocations: 19.78 kB / 320.9 MB, free: 3.828 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.004483, allocations: 70.25 kB / 321 MB, free: 3.762 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.004665, allocations: 135.4 kB / 321.1 MB, free: 3.629 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.004836, allocations: 41.98 kB / 321.2 MB, free: 3.578 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.004953, allocations: 83.73 kB / 321.3 MB, free: 3.496 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.067e-05/0.005023, allocations: 47.81 kB / 321.3 MB, free: 3.449 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.85e-05/0.005052, allocations: 8 kB / 321.3 MB, free: 3.441 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.691e-05/0.005069, allocations: 12 kB / 321.3 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.771e-05/0.005097, allocations: 27.91 kB / 321.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.119e-05/0.005138, allocations: 39.91 kB / 321.4 MB, free: 3.363 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.00532, allocations: 123.6 kB / 321.5 MB, free: 3.242 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.005323, allocations: 0 / 321.5 MB, free: 3.242 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.005324, allocations: 0 / 321.5 MB, free: 3.242 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.00533, allocations: 4 kB / 321.5 MB, free: 3.238 MB / 282.7 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.0005313/0.005861, allocations: 365.7 kB / 321.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/0.005918, allocations: 8.031 kB / 321.9 MB, free: 2.844 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.56e-05/0.005973, allocations: 46.73 kB / 321.9 MB, free: 2.789 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.374e-05/0.006017, allocations: 16.84 kB / 321.9 MB, free: 2.773 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.006251, allocations: 153 kB / 322.1 MB, free: 2.602 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.006264, allocations: 12.31 kB / 322.1 MB, free: 2.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.806e-05/0.006292, allocations: 12.38 kB / 322.1 MB, free: 2.578 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003879/0.00668, allocations: 231.1 kB / 322.3 MB, free: 2.328 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.006694, allocations: 8.125 kB / 322.4 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.006709, allocations: 8.125 kB / 322.4 MB, free: 2.312 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.006716, allocations: 4 kB / 322.4 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001494/0.006865, allocations: 83.86 kB / 322.4 MB, free: 2.227 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005704/0.007436, allocations: 0.5118 MB / 323 MB, free: 1.652 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.007693, allocations: 143.9 kB / 323.1 MB, free: 1.484 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.408e-05/0.007787, allocations: 70.58 kB / 323.2 MB, free: 1.406 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.007812, allocations: 4 kB / 323.2 MB, free: 1.402 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.007836, allocations: 34.56 kB / 323.2 MB, free: 1.359 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.803e-06/0.007837, allocations: 0 / 323.2 MB, free: 1.359 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003771/0.008214, allocations: 181.8 kB / 323.4 MB, free: 1.176 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.285e-05/0.008307, allocations: 118.8 kB / 323.5 MB, free: 1.035 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.008411, allocations: 138.1 kB / 323.6 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.008425, allocations: 25.7 kB / 323.7 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.243e-05/0.008498, allocations: 116.1 kB / 323.8 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.008519, allocations: 27.78 kB / 323.8 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.251e-05/0.008561, allocations: 25.72 kB / 323.8 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.008678, allocations: 318.8 kB / 324.1 MB, free: 372 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.33e-05/0.008741, allocations: 31.92 kB / 324.2 MB, free: 340 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.697e-05/0.008828, allocations: 87.73 kB / 324.3 MB, free: 224 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.008986, allocations: 118.9 kB / 324.4 MB, free: 80 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.008989, allocations: 0 / 324.4 MB, free: 80 kB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002104/0.0092, allocations: 137.5 kB / 324.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.009219, allocations: 7.984 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.009228, allocations: 7.938 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.009244, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.985e-05/0.009324, allocations: 31.92 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.009332, allocations: 3.938 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.285e-05/0.009385, allocations: 24.16 kB / 324.6 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.009394, allocations: 4 kB / 324.6 MB, free: 15.86 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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.959e-05/0.009483, allocations: 129.7 kB / 324.7 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.009587, allocations: 81.64 kB / 324.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.744e-05/0.009624, allocations: 24.7 kB / 324.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.009628, allocations: 4 kB / 324.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.009635, allocations: 3.938 kB / 324.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.009639, allocations: 0 / 324.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001864/0.009825, allocations: 172.7 kB / 325 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.009828, allocations: 8 kB / 325 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.009947, allocations: 39.97 kB / 325 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.00995, allocations: 0 / 325 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.009961, allocations: 4 kB / 325 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.009962, allocations: 0 / 325 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.009964, allocations: 3.938 kB / 325 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.01034, allocations: 387.4 kB / 325.4 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.613e-05/0.01035, allocations: 11.92 kB / 325.4 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.01037, allocations: 8.156 kB / 325.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.112e-05/0.01044, allocations: 11.92 kB / 325.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.544e-05/0.01048, allocations: 11.92 kB / 325.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.01048, allocations: 8 kB / 325.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.724e-05/0.01053, allocations: 101.7 kB / 325.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01053, allocations: 0 / 325.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002068/0.01074, allocations: 27.95 kB / 325.6 MB, free: 14.77 MB / 298.7 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.0005257/0.01126, allocations: 0.9193 MB / 326.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001884/0.01145, allocations: 95.86 kB / 326.6 MB, free: 13.72 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.01145, allocations: 0 / 326.6 MB, free: 13.72 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.025e-05/0.0115, allocations: 31.91 kB / 326.6 MB, free: 13.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.01189, allocations: 59.09 kB / 326.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.01347, allocations: 1.841 MB / 328.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.44e-05/0.01356, allocations: 114.2 kB / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.581e-05/0.01359, allocations: 12.95 kB / 328.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.161e-05/0.01365, allocations: 40.48 kB / 328.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01365, allocations: 0 / 328.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.03077, allocations: 3.634 MB / 332.3 MB, free: 8.047 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.664/6.695, allocations: 7.875 kB / 332.3 MB, free: 8.043 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/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: 8.544408846646547]