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.0008476/0.0008476, 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.0007834/0.0007834, allocations: 149.4 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.8668/0.8668, allocations: 173.3 MB / 200.4 MB, free: 9.441 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 1.664e-06/1.664e-06, allocations: 0 / 318.4 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.919e-05/2.085e-05, allocations: 3.266 kB / 318.4 MB, free: 6.398 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002343/0.002364, allocations: 2.015 MB / 320.4 MB, free: 4.371 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007185/0.003082, allocations: 494.6 kB / 320.9 MB, free: 3.883 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.891e-05/0.003181, allocations: 4 kB / 320.9 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.954e-05/0.003281, allocations: 15.8 kB / 320.9 MB, free: 3.863 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.163e-05/0.003342, allocations: 27.73 kB / 320.9 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002591/0.003601, allocations: 59.8 kB / 321 MB, free: 3.777 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001574/0.003759, allocations: 135.4 kB / 321.1 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.003891, allocations: 49.95 kB / 321.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.589e-05/0.003987, allocations: 75.8 kB / 321.3 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.986e-05/0.004047, allocations: 43.83 kB / 321.3 MB, free: 3.469 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.679e-05/0.004074, allocations: 16 kB / 321.3 MB, free: 3.453 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.266e-05/0.004086, allocations: 8 kB / 321.3 MB, free: 3.445 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.187e-05/0.004108, allocations: 23.91 kB / 321.4 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.752e-05/0.004146, allocations: 39.92 kB / 321.4 MB, free: 3.383 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.004307, allocations: 131.5 kB / 321.5 MB, free: 3.254 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.004309, allocations: 0 / 321.5 MB, free: 3.254 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.00431, allocations: 0 / 321.5 MB, free: 3.254 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.004315, allocations: 0 / 321.5 MB, free: 3.254 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.0004363/0.004751, allocations: 357.7 kB / 321.9 MB, free: 2.875 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.004787, allocations: 16.03 kB / 321.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.461e-05/0.004822, allocations: 46.73 kB / 321.9 MB, free: 2.805 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.072e-05/0.004853, allocations: 16.84 kB / 321.9 MB, free: 2.789 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.005047, allocations: 153.5 kB / 322.1 MB, free: 2.613 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.005059, allocations: 12.38 kB / 322.1 MB, free: 2.602 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.005084, allocations: 12.38 kB / 322.1 MB, free: 2.59 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003539/0.005438, allocations: 239 kB / 322.4 MB, free: 2.332 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.00545, allocations: 192 / 322.4 MB, free: 2.332 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.005464, allocations: 12.12 kB / 322.4 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.005469, allocations: 0 / 322.4 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.005613, allocations: 83.88 kB / 322.4 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004729/0.006086, allocations: 0.5156 MB / 323 MB, free: 1.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002394/0.006325, allocations: 143.9 kB / 323.1 MB, free: 1.492 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.093e-05/0.006416, allocations: 66.64 kB / 323.2 MB, free: 1.418 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.00644, allocations: 7.984 kB / 323.2 MB, free: 1.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.00646, allocations: 34.5 kB / 323.2 MB, free: 1.367 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.114e-06/0.006462, allocations: 0 / 323.2 MB, free: 1.367 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003169/0.006779, allocations: 181.7 kB / 323.4 MB, free: 1.184 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.006841, allocations: 119 kB / 323.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.894e-05/0.00692, allocations: 138.1 kB / 323.6 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.006931, allocations: 25.7 kB / 323.7 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.604e-05/0.006987, allocations: 124 kB / 323.8 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.512e-05/0.007002, allocations: 15.8 kB / 323.8 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.007035, allocations: 29.7 kB / 323.8 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003405/0.007376, allocations: 318.8 kB / 324.1 MB, free: 380 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.058e-05/0.007436, allocations: 31.97 kB / 324.2 MB, free: 348 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.406e-05/0.00751, allocations: 90.52 kB / 324.3 MB, free: 232 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001286/0.007639, allocations: 110.8 kB / 324.4 MB, free: 96 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.007642, allocations: 4 kB / 324.4 MB, free: 92 kB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001768/0.007819, allocations: 137.6 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.007834, allocations: 8 kB / 324.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.007839, allocations: 3.984 kB / 324.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.007853, allocations: 7.984 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.515e-05/0.007928, allocations: 31.91 kB / 324.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.007935, allocations: 7.938 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.438e-05/0.007979, allocations: 16.17 kB / 324.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.007986, allocations: 8 kB / 324.6 MB, free: 15.87 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 7.074e-05/0.008057, allocations: 121.8 kB / 324.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.871e-05/0.008155, allocations: 93.56 kB / 324.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.095e-05/0.008186, allocations: 16.78 kB / 324.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.008189, allocations: 0 / 324.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.008195, allocations: 3.938 kB / 324.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.008198, allocations: 4 kB / 324.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.008368, allocations: 164.7 kB / 325 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.008371, allocations: 4 kB / 325 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.00849, allocations: 55.89 kB / 325 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.008492, allocations: 0 / 325 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.008502, allocations: 4 kB / 325 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.008505, allocations: 4 kB / 325.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.008507, allocations: 3.938 kB / 325.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000326/0.008833, allocations: 379.4 kB / 325.4 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.61e-05/0.008849, allocations: 11.92 kB / 325.4 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.69e-05/0.008866, allocations: 8.094 kB / 325.4 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.92e-05/0.008935, allocations: 15.98 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.39e-05/0.008969, allocations: 11.94 kB / 325.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.008973, allocations: 4 kB / 325.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.422e-05/0.009018, allocations: 106.5 kB / 325.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009018, allocations: 0 / 325.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001993/0.009217, 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.000495/0.009712, allocations: 0.922 MB / 326.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001845/0.009896, allocations: 91.86 kB / 326.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.009898, allocations: 0 / 326.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.567e-05/0.009944, allocations: 23.98 kB / 326.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004145/0.01036, allocations: 64.38 kB / 326.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/0.01188, allocations: 1.856 MB / 328.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.337e-05/0.01195, allocations: 110.2 kB / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.776e-05/0.01199, allocations: 4.984 kB / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.972e-05/0.01205, allocations: 36.48 kB / 328.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01205, allocations: 0 / 328.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02076/0.0328, allocations: 3.623 MB / 332.3 MB, free: 8.066 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.709/6.742, allocations: 8.062 kB / 332.3 MB, free: 8.059 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.420035763643682]