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.001375/0.001375, allocations: 107.5 kB / 20.43 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.001356/0.001356, allocations: 187.1 kB / 23.7 MB, free: 4.188 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.346/1.346, 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.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 0.001504/0.001504, allocations: 47.92 kB / 370.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2323, allocations: 52.18 MB / 422.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003485/0.2358, allocations: 2.03 MB / 424.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000873/0.2367, allocations: 478.8 kB / 425 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.292e-05/0.2368, allocations: 4 kB / 425.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.2369, allocations: 15.8 kB / 425.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.32e-05/0.237, allocations: 35.72 kB / 425.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.2372, allocations: 51.88 kB / 425.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001901/0.2374, allocations: 135.5 kB / 425.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.2375, allocations: 35.69 kB / 425.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.461e-05/0.2376, allocations: 51.78 kB / 425.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.35e-05/0.2377, allocations: 55.7 kB / 425.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.769e-05/0.2377, allocations: 8 kB / 425.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.234e-05/0.2378, allocations: 12 kB / 425.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.98e-05/0.2378, allocations: 23.92 kB / 425.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.784e-05/0.2379, allocations: 51.73 kB / 425.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.2381, allocations: 135.3 kB / 425.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2381, allocations: 0 / 425.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2381, allocations: 0 / 425.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.605e-06/0.2381, allocations: 4 kB / 425.7 MB, free: 11.28 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005779/0.2387, allocations: 357.8 kB / 426 MB, free: 10.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.2387, allocations: 8.031 kB / 426 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.693e-05/0.2387, allocations: 46.73 kB / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.2388, allocations: 16.84 kB / 426.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002533/0.239, allocations: 158.2 kB / 426.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.239, allocations: 8.375 kB / 426.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.257e-05/0.2391, allocations: 12.38 kB / 426.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004687/0.2395, allocations: 238.6 kB / 426.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.2396, allocations: 0 / 426.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.2396, allocations: 4 kB / 426.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.2396, allocations: 8 kB / 426.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.2398, allocations: 87.86 kB / 426.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006574/0.2405, allocations: 0.5154 MB / 427.1 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/0.2408, allocations: 143.9 kB / 427.2 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.241, allocations: 78.62 kB / 427.3 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.241, allocations: 4 kB / 427.3 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.241, allocations: 42.5 kB / 427.4 MB, free: 9.387 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.241, allocations: 0 / 427.4 MB, free: 9.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005044/0.2415, allocations: 181.3 kB / 427.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.347e-05/0.2416, allocations: 118.8 kB / 427.6 MB, free: 9.062 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.2418, allocations: 136.7 kB / 427.8 MB, free: 8.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.2418, allocations: 29.7 kB / 427.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.862e-05/0.2419, allocations: 116.2 kB / 427.9 MB, free: 8.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.2419, allocations: 27.78 kB / 428 MB, free: 8.742 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.513e-05/0.2419, allocations: 33.72 kB / 428 MB, free: 8.703 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2421, allocations: 322.8 kB / 428.3 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.2422, allocations: 35.97 kB / 428.3 MB, free: 8.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.2424, allocations: 150.9 kB / 428.5 MB, free: 8.152 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004034/0.2428, allocations: 201.6 kB / 428.7 MB, free: 7.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.2428, allocations: 3.938 kB / 428.7 MB, free: 7.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003757/0.2432, allocations: 197.5 kB / 428.9 MB, free: 7.703 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.2432, allocations: 8 kB / 428.9 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.2432, allocations: 7.984 kB / 428.9 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.2432, allocations: 4 kB / 428.9 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.2434, allocations: 51.92 kB / 428.9 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.2434, allocations: 4 kB / 429 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.2435, allocations: 19.88 kB / 429 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.2435, allocations: 12 kB / 429 MB, free: 7.598 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001198/0.2436, allocations: 141.8 kB / 429.1 MB, free: 7.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.2438, allocations: 97.88 kB / 429.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.084e-05/0.2438, allocations: 16.72 kB / 429.2 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2438, allocations: 0 / 429.2 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2438, allocations: 4 kB / 429.2 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.2438, allocations: 0 / 429.2 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002935/0.2441, allocations: 172.6 kB / 429.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2441, allocations: 0 / 429.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002051/0.2443, allocations: 47.95 kB / 429.5 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.2443, allocations: 0 / 429.5 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.2444, allocations: 8 kB / 429.5 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2444, allocations: 4 kB / 429.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.2444, allocations: 3.938 kB / 429.5 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000551/0.2449, allocations: 379.4 kB / 429.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.257e-05/0.2449, allocations: 11.94 kB / 429.8 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.245, allocations: 4 kB / 429.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001358/0.2451, allocations: 11.98 kB / 429.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.438e-05/0.2451, allocations: 4.062 kB / 429.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-06/0.2451, allocations: 8 kB / 429.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.464e-05/0.2452, allocations: 103.2 kB / 430 MB, free: 6.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2452, allocations: 0 / 430 MB, free: 6.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003138/0.2455, allocations: 31.94 kB / 430 MB, free: 6.488 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.0008557/0.2464, allocations: 0.9154 MB / 430.9 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003343/0.2467, allocations: 128.1 kB / 431 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2467, allocations: 0 / 431 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.2468, allocations: 27.92 kB / 431.1 MB, free: 5.391 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/0.2473, allocations: 61.48 kB / 431.1 MB, free: 5.332 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002616/0.2499, allocations: 2.113 MB / 433.2 MB, free: 3.043 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.25, allocations: 102.7 kB / 433.4 MB, free: 2.926 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.949e-05/0.2501, allocations: 17.08 kB / 433.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.11e-05/0.2501, allocations: 35.42 kB / 433.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2501, allocations: 0 / 433.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03224/0.2824, allocations: 3.597 MB / 437 MB, free: 15.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.86, allocations: 2.969 kB / 437 MB, free: 15.46 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/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: 13.116490698885173]