Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001883/0.001883, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.00171/0.00171, allocations: 187.7 kB / 23.7 MB, free: 4.191 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.417/1.417, allocations: 225.7 MB / 252.5 MB, free: 12.85 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 55.91 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2481, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003552/0.2517, allocations: 1.964 MB / 424.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009228/0.2526, allocations: 0.4987 MB / 425 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.29e-05/0.2527, allocations: 3.938 kB / 425 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.2528, allocations: 19.8 kB / 425 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.253, allocations: 27.72 kB / 425.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002326/0.2532, allocations: 71.42 kB / 425.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001769/0.2534, allocations: 115.6 kB / 425.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.2535, allocations: 41.61 kB / 425.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.022e-05/0.2536, allocations: 51.84 kB / 425.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.41e-05/0.2537, allocations: 47.7 kB / 425.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.485e-05/0.2537, allocations: 12 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.343e-05/0.2537, allocations: 12 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.111e-05/0.2537, allocations: 23.92 kB / 425.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.217e-05/0.2538, allocations: 51.72 kB / 425.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001915/0.254, allocations: 133.1 kB / 425.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.254, allocations: 0 / 425.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.254, allocations: 0 / 425.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.254, allocations: 0 / 425.6 MB, free: 11.32 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000583/0.2546, allocations: 357.8 kB / 426 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.2546, allocations: 12.03 kB / 426 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.239e-05/0.2547, allocations: 46.73 kB / 426 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.2547, allocations: 16.84 kB / 426 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.255, allocations: 150.3 kB / 426.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.255, allocations: 8.375 kB / 426.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.179e-05/0.255, allocations: 16.38 kB / 426.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005156/0.2555, allocations: 258.6 kB / 426.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2555, allocations: 3.938 kB / 426.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.2556, allocations: 7.938 kB / 426.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.2556, allocations: 4 kB / 426.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/0.2558, allocations: 87.88 kB / 426.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006649/0.2565, allocations: 0.5154 MB / 427.1 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000361/0.2569, allocations: 143.9 kB / 427.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.257, allocations: 74.61 kB / 427.3 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.2571, allocations: 4 kB / 427.3 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.2571, allocations: 38.5 kB / 427.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.2571, allocations: 0 / 427.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005219/0.2576, allocations: 189.4 kB / 427.5 MB, free: 9.219 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.823e-05/0.2577, allocations: 114.7 kB / 427.6 MB, free: 9.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.2578, allocations: 133.9 kB / 427.8 MB, free: 8.941 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.2579, allocations: 25.7 kB / 427.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.964e-05/0.2579, allocations: 119.9 kB / 427.9 MB, free: 8.789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.029e-05/0.258, allocations: 27.83 kB / 427.9 MB, free: 8.762 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.644e-05/0.258, allocations: 37.7 kB / 428 MB, free: 8.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2582, allocations: 318.8 kB / 428.3 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.2583, allocations: 35.97 kB / 428.3 MB, free: 8.363 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.2585, allocations: 137.8 kB / 428.5 MB, free: 8.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000322/0.2588, allocations: 193.4 kB / 428.6 MB, free: 7.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.2588, allocations: 3.938 kB / 428.6 MB, free: 7.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003915/0.2592, allocations: 193.3 kB / 428.8 MB, free: 7.742 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.2592, allocations: 4 kB / 428.8 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2592, allocations: 4 kB / 428.8 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.2593, allocations: 8 kB / 428.8 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.2594, allocations: 43.91 kB / 428.9 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.2594, allocations: 12.41 kB / 428.9 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.2595, allocations: 32.27 kB / 428.9 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.2595, allocations: 8 kB / 428.9 MB, free: 7.633 MB / 334.1 MB 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.0001277/0.2597, allocations: 133.7 kB / 429.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.2598, allocations: 85.58 kB / 429.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.78e-05/0.2599, allocations: 20.7 kB / 429.2 MB, free: 7.379 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2599, allocations: 4 kB / 429.2 MB, free: 7.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2599, allocations: 0 / 429.2 MB, free: 7.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.2599, allocations: 3.938 kB / 429.2 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002776/0.2602, allocations: 176.5 kB / 429.4 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.2602, allocations: 8 kB / 429.4 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.2604, allocations: 27.98 kB / 429.4 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.2604, allocations: 4 kB / 429.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.2604, allocations: 4 kB / 429.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.2604, allocations: 7.984 kB / 429.4 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.2604, allocations: 0 / 429.4 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005817/0.261, allocations: 371.4 kB / 429.8 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.512e-05/0.261, allocations: 19.98 kB / 429.8 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.261, allocations: 4 kB / 429.8 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.2612, allocations: 11.98 kB / 429.8 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.297e-05/0.2612, allocations: 3.984 kB / 429.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.2612, allocations: 4 kB / 429.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.136e-05/0.2613, allocations: 99.27 kB / 429.9 MB, free: 6.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2613, allocations: 4 kB / 429.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003186/0.2616, allocations: 27.95 kB / 429.9 MB, free: 6.551 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.0008717/0.2625, allocations: 0.9229 MB / 430.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003177/0.2628, allocations: 115.8 kB / 431 MB, free: 5.488 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2628, allocations: 0.9375 kB / 431 MB, free: 5.488 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.576e-05/0.2629, allocations: 35.91 kB / 431 MB, free: 5.453 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004651/0.2633, allocations: 44.98 kB / 431.1 MB, free: 5.414 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.2659, allocations: 2.069 MB / 433.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.266, allocations: 97.61 kB / 433.2 MB, free: 3.055 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.551e-05/0.266, allocations: 13.08 kB / 433.2 MB, free: 3.043 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.983e-05/0.2661, allocations: 31.44 kB / 433.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2661, allocations: 0 / 433.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03173/0.2978, allocations: 3.365 MB / 436.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.45, allocations: 3.984 kB / 436.6 MB, free: 15.79 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.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: 13.977646867744625]