Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00082/0.00082, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008617/0.0008617, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8635/0.8635, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.427e-06/1.091e-05, allocations: 6.219 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002011/0.002022, allocations: 1.991 MB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005946/0.002617, allocations: 0.5025 MB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.595e-05/0.002693, allocations: 7.875 kB / 327 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.332e-05/0.002776, allocations: 19.86 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.729e-05/0.002823, allocations: 27.72 kB / 327 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002272/0.003051, allocations: 63.73 kB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.003172, allocations: 119.5 kB / 327.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.00329, allocations: 45.31 kB / 327.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.91e-05/0.003369, allocations: 75.86 kB / 327.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.23e-05/0.003432, allocations: 35.78 kB / 327.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.379e-05/0.003455, allocations: 12 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.205e-05/0.003468, allocations: 12 kB / 327.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.532e-05/0.003493, allocations: 31.91 kB / 327.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.74e-05/0.00353, allocations: 39.91 kB / 327.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.003675, allocations: 127.5 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.003677, allocations: 0 / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.22e-07/0.003677, allocations: 0 / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.003681, allocations: 0 / 327.6 MB, free: 12.77 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004183/0.004099, allocations: 349.8 kB / 327.9 MB, free: 12.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.00414, allocations: 11.98 kB / 327.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.601e-05/0.004176, allocations: 42.75 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.915e-05/0.004206, allocations: 16.84 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.004382, allocations: 145.6 kB / 328.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.004401, allocations: 16.36 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.004426, allocations: 16.33 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003316/0.004758, allocations: 227.2 kB / 328.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.00477, allocations: 192 / 328.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.004782, allocations: 8.125 kB / 328.4 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.004788, allocations: 7.938 kB / 328.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001398/0.004928, allocations: 83.88 kB / 328.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004152/0.005343, allocations: 0.5194 MB / 329 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.005512, allocations: 139.9 kB / 329.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.458e-05/0.005596, allocations: 70.64 kB / 329.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.005616, allocations: 7.938 kB / 329.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.75e-05/0.005634, allocations: 34.56 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.005635, allocations: 3.938 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002829/0.005918, allocations: 177.4 kB / 329.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.005977, allocations: 118.7 kB / 329.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.173e-05/0.006048, allocations: 122.1 kB / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.018e-05/0.006059, allocations: 33.83 kB / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.571e-05/0.006104, allocations: 112.1 kB / 329.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.006122, allocations: 27.78 kB / 329.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.994e-05/0.006152, allocations: 21.72 kB / 329.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.976e-05/0.006232, allocations: 322.8 kB / 330.2 MB, free: 9.922 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002255/0.006457, allocations: 31.97 kB / 330.2 MB, free: 9.891 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.288e-05/0.00653, allocations: 78.78 kB / 330.3 MB, free: 9.789 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.006653, allocations: 111 kB / 330.4 MB, free: 9.656 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.006655, allocations: 4 kB / 330.4 MB, free: 9.652 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00016/0.006815, allocations: 141.4 kB / 330.5 MB, free: 9.508 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.006829, allocations: 8 kB / 330.5 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.006834, allocations: 0 / 330.5 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.006846, allocations: 4 kB / 330.6 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.795e-05/0.006934, allocations: 27.92 kB / 330.6 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.006944, allocations: 7.938 kB / 330.6 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.974e-05/0.006984, allocations: 12.31 kB / 330.6 MB, free: 9.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.006992, allocations: 8 kB / 330.6 MB, free: 9.441 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.419e-05/0.007077, allocations: 126 kB / 330.7 MB, free: 9.309 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.474e-05/0.007161, allocations: 89.52 kB / 330.8 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.409e-05/0.007195, allocations: 20.77 kB / 330.8 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.007198, allocations: 0 / 330.8 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.007204, allocations: 3.938 kB / 330.8 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.00721, allocations: 4 kB / 330.8 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.007379, allocations: 164.7 kB / 331 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.00738, allocations: 0 / 331 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.925e-05/0.007469, allocations: 43.86 kB / 331.1 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.007471, allocations: 0 / 331.1 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.007478, allocations: 4 kB / 331.1 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.007481, allocations: 4 kB / 331.1 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.007482, allocations: 3.938 kB / 331.1 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002923/0.007775, allocations: 374.9 kB / 331.4 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.399e-05/0.007789, allocations: 15.88 kB / 331.4 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.007803, allocations: 8 kB / 331.5 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.366e-05/0.007867, allocations: 7.984 kB / 331.5 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.144e-05/0.007898, allocations: 4 kB / 331.5 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.007904, allocations: 12 kB / 331.5 MB, free: 8.504 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.176e-05/0.007946, allocations: 102.3 kB / 331.6 MB, free: 8.406 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007946, allocations: 0 / 331.6 MB, free: 8.406 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001831/0.008129, allocations: 24 kB / 331.6 MB, free: 8.383 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 (14): * Single equations (assignments): 14 * 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.0004362/0.008565, allocations: 0.8921 MB / 332.5 MB, free: 7.457 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001664/0.008731, allocations: 99.86 kB / 332.6 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.008733, allocations: 0 / 332.6 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.814e-05/0.008781, allocations: 27.97 kB / 332.6 MB, free: 7.332 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.009105, allocations: 71.67 kB / 332.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.01031, allocations: 1.807 MB / 334.5 MB, free: 5.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.105e-05/0.01037, allocations: 97.3 kB / 334.6 MB, free: 5.207 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.61e-05/0.0104, allocations: 12.48 kB / 334.6 MB, free: 5.195 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.938e-05/0.01045, allocations: 36.48 kB / 334.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of SimCode: time 6.82e-07/0.01045, allocations: 0 / 334.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01531/0.02576, allocations: 3.384 MB / 338 MB, free: 1.945 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.604/6.63, allocations: 4 kB / 338 MB, free: 1.941 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_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.410201429389417]