Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001349/0.001349, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001987/0.001987, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.959/0.959, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.074e-05/2.242e-05, allocations: 6.219 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002395/0.002417, allocations: 1.992 MB / 326.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007293/0.003147, allocations: 0.5374 MB / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.994e-05/0.003237, allocations: 4 kB / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.815e-05/0.003335, allocations: 19.8 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.003466, allocations: 35.66 kB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001969/0.003662, allocations: 51.81 kB / 327.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001467/0.003809, allocations: 127.5 kB / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.00395, allocations: 46.14 kB / 327.4 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.863e-05/0.004039, allocations: 75.81 kB / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.922e-05/0.004108, allocations: 35.83 kB / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.897e-05/0.004137, allocations: 12 kB / 327.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.309e-05/0.00415, allocations: 12 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.903e-05/0.004179, allocations: 31.91 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.178e-05/0.004221, allocations: 39.89 kB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001566/0.004377, allocations: 127.6 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.00438, allocations: 0 / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.004381, allocations: 0 / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.117e-06/0.004385, allocations: 0 / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004608/0.004846, allocations: 353.8 kB / 328 MB, free: 12.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.004885, allocations: 8.031 kB / 328 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.873e-05/0.004923, allocations: 50.73 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.8e-05/0.004951, allocations: 16.84 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.005154, allocations: 149.5 kB / 328.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.005165, allocations: 8.375 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.629e-05/0.005192, allocations: 12.38 kB / 328.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003655/0.005557, allocations: 254.5 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.005569, allocations: 8.125 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.005581, allocations: 8.125 kB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.005587, allocations: 4 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001529/0.00574, allocations: 79.88 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005069/0.006247, allocations: 0.5156 MB / 329.1 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.006516, allocations: 135.9 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.577e-05/0.006612, allocations: 86.5 kB / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.006636, allocations: 4 kB / 329.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.006656, allocations: 34.5 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.006658, allocations: 0 / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003338/0.006992, allocations: 181.4 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003394/0.007331, allocations: 114.9 kB / 329.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.775e-05/0.007409, allocations: 138.2 kB / 329.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.00742, allocations: 25.7 kB / 329.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.549e-05/0.007476, allocations: 111.9 kB / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.007494, allocations: 27.78 kB / 330 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.007529, allocations: 25.72 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.126e-05/0.00761, allocations: 322.8 kB / 330.3 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.567e-05/0.007666, allocations: 27.97 kB / 330.3 MB, free: 9.887 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.706e-05/0.007733, allocations: 74.84 kB / 330.4 MB, free: 9.789 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001252/0.007858, allocations: 118.7 kB / 330.5 MB, free: 9.648 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.00786, allocations: 4 kB / 330.5 MB, free: 9.645 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000161/0.008021, allocations: 133.4 kB / 330.7 MB, free: 9.508 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.008036, allocations: 8 kB / 330.7 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.008041, allocations: 0 / 330.7 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.008054, allocations: 4 kB / 330.7 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.799e-05/0.008122, allocations: 27.98 kB / 330.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.008131, allocations: 15.86 kB / 330.7 MB, free: 9.453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.989e-05/0.008171, allocations: 11.94 kB / 330.7 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-06/0.008179, allocations: 12.22 kB / 330.7 MB, free: 9.43 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 6.635e-05/0.008245, allocations: 117.8 kB / 330.9 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.031e-05/0.008336, allocations: 89.95 kB / 330.9 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.57e-05/0.008391, allocations: 17 kB / 331 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.008395, allocations: 4 kB / 331 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.0084, allocations: 3.938 kB / 331 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.008404, allocations: 8.016 kB / 331 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001663/0.008571, allocations: 180.5 kB / 331.2 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.008573, allocations: 4 kB / 331.2 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.615e-05/0.008669, allocations: 35.92 kB / 331.2 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.008672, allocations: 7.984 kB / 331.2 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.008683, allocations: 8 kB / 331.2 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.008685, allocations: 0 / 331.2 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.008687, allocations: 3.938 kB / 331.2 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003126/0.008999, allocations: 371.5 kB / 331.6 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.365e-05/0.009013, allocations: 15.91 kB / 331.6 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.009029, allocations: 8 kB / 331.6 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.77e-05/0.009097, allocations: 8.062 kB / 331.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.552e-05/0.009132, allocations: 11.92 kB / 331.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.009139, allocations: 8 kB / 331.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.088e-05/0.009179, allocations: 98.08 kB / 331.7 MB, free: 8.379 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.009179, allocations: 0 / 331.7 MB, free: 8.379 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001995/0.009379, allocations: 23.94 kB / 331.7 MB, free: 8.355 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.0005141/0.009893, allocations: 0.9143 MB / 332.7 MB, free: 7.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001887/0.01008, allocations: 99.8 kB / 332.8 MB, free: 7.312 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01008, allocations: 0 / 332.8 MB, free: 7.312 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.011e-05/0.01013, allocations: 27.97 kB / 332.8 MB, free: 7.285 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.0105, allocations: 59.88 kB / 332.8 MB, free: 7.227 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.01186, allocations: 1.807 MB / 334.6 MB, free: 5.285 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.368e-05/0.01193, allocations: 105.4 kB / 334.8 MB, free: 5.164 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.036e-05/0.01196, allocations: 8.922 kB / 334.8 MB, free: 5.156 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.325e-05/0.01202, allocations: 32.48 kB / 334.8 MB, free: 5.125 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01202, allocations: 0 / 334.8 MB, free: 5.125 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.02995, allocations: 3.415 MB / 338.2 MB, free: 1.863 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.076/7.106, allocations: 2.625 kB / 338.2 MB, free: 1.863 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000593942 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_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: 9.031410054303706]