Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001279/0.001279, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001759/0.001759, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.397/1.397, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 51.91 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2438, allocations: 53.35 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003857/0.2477, allocations: 2.043 MB / 433.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.2488, allocations: 0.5025 MB / 433.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.2489, allocations: 7.938 kB / 433.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.249, allocations: 19.8 kB / 433.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.604e-05/0.2491, allocations: 31.77 kB / 433.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002752/0.2494, allocations: 55.88 kB / 433.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.2495, allocations: 131.5 kB / 433.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.2497, allocations: 35.67 kB / 433.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.287e-05/0.2498, allocations: 47.84 kB / 433.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.024e-05/0.2499, allocations: 55.7 kB / 434 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.2499, allocations: 12 kB / 434 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.125e-05/0.2499, allocations: 8 kB / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.076e-05/0.2499, allocations: 27.92 kB / 434 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.811e-05/0.25, allocations: 51.73 kB / 434.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002155/0.2502, allocations: 143.2 kB / 434.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.2502, allocations: 0 / 434.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2502, allocations: 0 / 434.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.2502, allocations: 0 / 434.2 MB, free: 3.484 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.0006402/0.2509, allocations: 353.8 kB / 434.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.2509, allocations: 12.03 kB / 434.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.197e-05/0.251, allocations: 46.73 kB / 434.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.984e-05/0.251, allocations: 20.84 kB / 434.6 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.2513, allocations: 150.3 kB / 434.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.2514, allocations: 8.375 kB / 434.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.079e-05/0.2514, allocations: 16.33 kB / 434.8 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005469/0.2519, allocations: 235.5 kB / 435 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.252, allocations: 4 kB / 435 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.252, allocations: 8 kB / 435.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.252, allocations: 0 / 435.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002508/0.2522, allocations: 87.81 kB / 435.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007369/0.253, allocations: 0.5193 MB / 435.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000347/0.2533, allocations: 135.9 kB / 435.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.2535, allocations: 78.61 kB / 435.9 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.2535, allocations: 7.938 kB / 435.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.2535, allocations: 34.56 kB / 435.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.2535, allocations: 0 / 435.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005223/0.2541, allocations: 181.5 kB / 436.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.864e-05/0.2542, allocations: 110.8 kB / 436.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.2543, allocations: 142.1 kB / 436.3 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.2543, allocations: 33.83 kB / 436.4 MB, free: 1.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.608e-05/0.2544, allocations: 120 kB / 436.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.934e-05/0.2544, allocations: 27.78 kB / 436.5 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.095e-05/0.2545, allocations: 33.72 kB / 436.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.2547, allocations: 318.8 kB / 436.9 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.2548, allocations: 39.97 kB / 436.9 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.255, allocations: 141.6 kB / 437 MB, free: 372 kB / 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.0004609/0.2554, allocations: 209.6 kB / 437.2 MB, free: 112 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.2554, allocations: 3.938 kB / 437.2 MB, free: 108 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004013/0.2558, allocations: 201.5 kB / 437.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.2558, allocations: 6.812 kB / 437.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.2559, allocations: 4 kB / 437.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.2559, allocations: 4 kB / 437.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.256, allocations: 51.91 kB / 437.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.256, allocations: 4 kB / 437.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.2562, allocations: 19.88 kB / 437.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.2562, allocations: 12.72 kB / 437.5 MB, free: 15.8 MB / 350.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.0001811/0.2564, allocations: 137.5 kB / 437.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.2565, allocations: 89.52 kB / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.84e-05/0.2566, allocations: 20.7 kB / 437.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2566, allocations: 4 kB / 437.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.2566, allocations: 0 / 437.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.2566, allocations: 0 / 437.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002743/0.2569, allocations: 180.5 kB / 438 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2569, allocations: 0 / 438 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000211/0.2571, allocations: 39.97 kB / 438 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2571, allocations: 4 kB / 438 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.2571, allocations: 15.92 kB / 438 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.2571, allocations: 0 / 438 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2571, allocations: 0 / 438 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005826/0.2577, allocations: 383.4 kB / 438.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.469e-05/0.2577, allocations: 11.97 kB / 438.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.181e-05/0.2577, allocations: 0 / 438.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.2579, allocations: 16.06 kB / 438.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.673e-05/0.2579, allocations: 3.984 kB / 438.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.2579, allocations: 11.88 kB / 438.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.197e-05/0.258, allocations: 106 kB / 438.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.258, allocations: 0 / 438.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003232/0.2583, allocations: 35.88 kB / 438.6 MB, free: 14.69 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.0008886/0.2592, allocations: 0.9155 MB / 439.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003554/0.2596, allocations: 127.1 kB / 439.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2596, allocations: 0 / 439.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.2597, allocations: 28.91 kB / 439.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005251/0.2602, allocations: 71.3 kB / 439.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.2629, allocations: 2.098 MB / 441.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001337/0.263, allocations: 102.7 kB / 441.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.693e-05/0.2631, allocations: 13.08 kB / 441.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.284e-05/0.2632, allocations: 39.42 kB / 442 MB, free: 11.08 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2632, allocations: 0 / 442 MB, free: 11.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0343/0.2975, allocations: 3.582 MB / 445.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.02, allocations: 0 / 445.5 MB, free: 7.676 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.398814420215786]