Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.0008291/0.0008291, allocations: 79.69 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.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.0008799/0.0008799, allocations: 170 kB / 23.95 MB, free: 0.6133 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.8608/0.8608, allocations: 177.1 MB / 204.3 MB, free: 5.727 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 324.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.593e-05/1.743e-05, allocations: 5.234 kB / 324.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002241/0.002259, allocations: 1.997 MB / 326.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007079/0.002967, allocations: 0.5103 MB / 327 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.35e-05/0.00306, allocations: 4 kB / 327.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.003166, allocations: 15.8 kB / 327.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.502e-05/0.003221, allocations: 31.66 kB / 327.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.003479, allocations: 63.8 kB / 327.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000136/0.003615, allocations: 115.5 kB / 327.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.003741, allocations: 49.91 kB / 327.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.289e-05/0.003824, allocations: 71.88 kB / 327.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.599e-05/0.00388, allocations: 35.89 kB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.518e-05/0.003905, allocations: 12 kB / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.258e-05/0.003918, allocations: 8 kB / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.003943, allocations: 31.84 kB / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.771e-05/0.003981, allocations: 35.91 kB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.004128, allocations: 131.5 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.083e-06/0.00413, allocations: 0 / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.004131, allocations: 3.938 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.004136, allocations: 0 / 327.6 MB, free: 12.85 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.0004734/0.004609, allocations: 345.8 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.004653, allocations: 20.02 kB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.957e-05/0.004693, allocations: 38.75 kB / 328 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.049e-05/0.004723, allocations: 16.84 kB / 328.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001979/0.004921, allocations: 145.1 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.004935, allocations: 8.375 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.764e-05/0.004963, allocations: 16.33 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006227/0.005585, allocations: 239.2 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.005599, allocations: 4.188 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.005613, allocations: 8.125 kB / 328.5 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.00562, allocations: 4 kB / 328.5 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001519/0.005772, allocations: 83.88 kB / 328.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004759/0.006248, allocations: 0.5117 MB / 329.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001934/0.006441, allocations: 147.9 kB / 329.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.775e-05/0.006529, allocations: 70.62 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.006552, allocations: 4 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.006571, allocations: 34.56 kB / 329.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.203e-06/0.006572, allocations: 0 / 329.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003044/0.006877, allocations: 181.5 kB / 329.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.006928, allocations: 114.7 kB / 329.6 MB, free: 10.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.759e-05/0.006995, allocations: 133.1 kB / 329.7 MB, free: 10.53 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.007007, allocations: 29.7 kB / 329.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.54e-05/0.007052, allocations: 112.1 kB / 329.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.00707, allocations: 27.78 kB / 329.9 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.135e-05/0.007101, allocations: 29.66 kB / 329.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.803e-05/0.007169, allocations: 318.8 kB / 330.2 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.306e-05/0.007222, allocations: 27.97 kB / 330.3 MB, free: 9.969 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.898e-05/0.007291, allocations: 82.88 kB / 330.3 MB, free: 9.863 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.007418, allocations: 114.7 kB / 330.5 MB, free: 9.727 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.00742, allocations: 0 / 330.5 MB, free: 9.727 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001592/0.00758, allocations: 133.5 kB / 330.6 MB, free: 9.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.007591, allocations: 7.938 kB / 330.6 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.007597, allocations: 4 kB / 330.6 MB, free: 9.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.007608, allocations: 0 / 330.6 MB, free: 9.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.815e-05/0.007696, allocations: 31.98 kB / 330.6 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.007701, allocations: 3.938 kB / 330.6 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.084e-05/0.007742, allocations: 20.16 kB / 330.7 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.007749, allocations: 4 kB / 330.7 MB, free: 9.52 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.444e-05/0.007813, allocations: 129.7 kB / 330.8 MB, free: 9.383 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.909e-05/0.007892, allocations: 81.58 kB / 330.9 MB, free: 9.297 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.923e-05/0.007921, allocations: 20.77 kB / 330.9 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.007925, allocations: 8 kB / 330.9 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.007931, allocations: 3.938 kB / 330.9 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.007934, allocations: 480 / 330.9 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.0081, allocations: 164.7 kB / 331.1 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.008102, allocations: 8 kB / 331.1 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.744e-05/0.00819, allocations: 27.98 kB / 331.1 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.008191, allocations: 0 / 331.1 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.008201, allocations: 11.94 kB / 331.1 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.008203, allocations: 3.984 kB / 331.1 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.008206, allocations: 7.938 kB / 331.1 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003114/0.008517, allocations: 371.5 kB / 331.5 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.6e-05/0.008533, allocations: 15.84 kB / 331.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.008547, allocations: 8 kB / 331.5 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.772e-05/0.008615, allocations: 11.98 kB / 331.5 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/0.008647, allocations: 7.938 kB / 331.5 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.008651, allocations: 4 kB / 331.5 MB, free: 8.578 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.998e-05/0.008691, allocations: 103.2 kB / 331.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008691, allocations: 0 / 331.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001885/0.00888, allocations: 24 kB / 331.7 MB, free: 8.453 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.0004527/0.009332, allocations: 0.8963 MB / 332.6 MB, free: 7.523 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001595/0.009492, allocations: 95.86 kB / 332.6 MB, free: 7.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.009493, allocations: 0 / 332.6 MB, free: 7.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.821e-05/0.009541, allocations: 32 kB / 332.7 MB, free: 7.398 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003262/0.009867, allocations: 59.17 kB / 332.7 MB, free: 7.344 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.01108, allocations: 1.811 MB / 334.5 MB, free: 5.395 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.886e-05/0.01114, allocations: 97.31 kB / 334.6 MB, free: 5.281 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.734e-05/0.01116, allocations: 8.484 kB / 334.6 MB, free: 5.273 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.935e-05/0.01121, allocations: 36.86 kB / 334.7 MB, free: 5.238 MB / 298.7 MB Notification: Performance of SimCode: time 7.81e-07/0.01121, allocations: 0 / 334.7 MB, free: 5.238 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01469/0.0259, allocations: 3.383 MB / 338.1 MB, free: 2.043 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.559/6.585, allocations: 7.797 kB / 338.1 MB, free: 2.035 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.206933725625277]