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.001414/0.001414, allocations: 113.1 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.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.001618/0.001618, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.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 0.001541/0.001541, allocations: 47.92 kB / 377.8 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2619, allocations: 53.36 MB / 431.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00361/0.2655, allocations: 2.051 MB / 433.2 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.2666, allocations: 0.5609 MB / 433.7 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.2667, allocations: 7.938 kB / 433.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.2668, allocations: 19.8 kB / 433.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.267, allocations: 31.72 kB / 433.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.2673, allocations: 58.98 kB / 433.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002126/0.2675, allocations: 127.6 kB / 434 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.2676, allocations: 41.52 kB / 434 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.2677, allocations: 55.83 kB / 434.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.2678, allocations: 51.72 kB / 434.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/0.2679, allocations: 12 kB / 434.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.035e-05/0.2679, allocations: 8 kB / 434.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.829e-05/0.2679, allocations: 31.92 kB / 434.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.656e-05/0.268, allocations: 67.58 kB / 434.2 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.2682, allocations: 133.1 kB / 434.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2682, allocations: 0 / 434.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2682, allocations: 0 / 434.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.2683, allocations: 0 / 434.4 MB, free: 3.609 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.0006497/0.2689, allocations: 357.8 kB / 434.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.269, allocations: 12.02 kB / 434.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.331e-05/0.269, allocations: 46.75 kB / 434.8 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.105e-05/0.269, allocations: 16.84 kB / 434.8 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003011/0.2693, allocations: 150.2 kB / 434.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.2694, allocations: 12.38 kB / 434.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.2694, allocations: 20.36 kB / 435 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005059/0.2699, allocations: 242.7 kB / 435.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.2699, allocations: 4 kB / 435.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.2699, allocations: 4 kB / 435.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.2699, allocations: 4 kB / 435.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002544/0.2702, allocations: 91.86 kB / 435.3 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000673/0.2709, allocations: 0.531 MB / 435.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.2712, allocations: 139.9 kB / 436 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.2714, allocations: 70.64 kB / 436 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.2714, allocations: 3.984 kB / 436 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.2715, allocations: 42.5 kB / 436.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.2715, allocations: 4 kB / 436.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005384/0.272, allocations: 177.4 kB / 436.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.843e-05/0.2721, allocations: 118.7 kB / 436.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.2722, allocations: 133.1 kB / 436.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.2722, allocations: 29.7 kB / 436.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.734e-05/0.2723, allocations: 120.4 kB / 436.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.827e-05/0.2723, allocations: 27.84 kB / 436.7 MB, free: 1.047 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.448e-05/0.2724, allocations: 33.7 kB / 436.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.2725, allocations: 322.8 kB / 437 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.2727, allocations: 39.91 kB / 437.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.2728, allocations: 129.7 kB / 437.2 MB, free: 480 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000325/0.2732, allocations: 189.5 kB / 437.4 MB, free: 240 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.2732, allocations: 3.938 kB / 437.4 MB, free: 236 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003882/0.2736, allocations: 205.4 kB / 437.6 MB, free: 24 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.2736, allocations: 8 kB / 437.6 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.2736, allocations: 4 kB / 437.6 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.2736, allocations: 4.469 kB / 437.6 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.2738, allocations: 48.02 kB / 437.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.2738, allocations: 15.92 kB / 437.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.2739, allocations: 23.88 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.2739, allocations: 8 kB / 437.7 MB, free: 15.91 MB / 350.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.0001136/0.274, allocations: 134.2 kB / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.2742, allocations: 81.64 kB / 437.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.376e-05/0.2743, allocations: 16.72 kB / 437.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.2743, allocations: 8 kB / 437.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2743, allocations: 3.938 kB / 437.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2743, allocations: 3.984 kB / 437.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.2746, allocations: 184.6 kB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2746, allocations: 0 / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001773/0.2747, allocations: 31.98 kB / 438.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2748, allocations: 0 / 438.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.2748, allocations: 4 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2748, allocations: 4 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.2748, allocations: 3.984 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005519/0.2753, allocations: 379.4 kB / 438.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.639e-05/0.2753, allocations: 19.88 kB / 438.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.2754, allocations: 4 kB / 438.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.2755, allocations: 16.05 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.202e-05/0.2755, allocations: 11.81 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.2756, allocations: 4 kB / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.957e-05/0.2756, allocations: 102.2 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2756, allocations: 0 / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003172/0.2759, allocations: 24 kB / 438.7 MB, free: 14.82 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.0008386/0.2768, allocations: 0.9194 MB / 439.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000344/0.2771, allocations: 120.3 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2771, allocations: 0 / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.664e-05/0.2772, allocations: 31.91 kB / 439.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.2777, allocations: 54.06 kB / 439.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002576/0.2803, allocations: 2.061 MB / 441.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003648/0.2806, allocations: 0.7162 MB / 442.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.776e-05/0.2807, allocations: 9.078 kB / 442.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.281e-05/0.2808, allocations: 35.44 kB / 442.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2808, allocations: 0 / 442.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03119/0.312, allocations: 3.002 MB / 445.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.84, allocations: 15.36 kB / 445.7 MB, free: 7.781 MB / 350.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/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: 14.438252634998207]