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.001722/0.001722, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002177/0.002177, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.401/1.401, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001503/0.001503, allocations: 43.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2426, allocations: 53.37 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003646/0.2462, allocations: 2.043 MB / 433.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.2473, allocations: 0.5064 MB / 433.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.2474, allocations: 11.94 kB / 433.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.2475, allocations: 15.8 kB / 433.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.365e-05/0.2476, allocations: 19.8 kB / 433.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.2479, allocations: 59.86 kB / 433.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002057/0.2481, allocations: 131.5 kB / 433.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.2483, allocations: 43.67 kB / 433.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.872e-05/0.2484, allocations: 47.8 kB / 433.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.881e-05/0.2485, allocations: 63.69 kB / 434 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.822e-05/0.2485, allocations: 15.94 kB / 434 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.957e-05/0.2485, allocations: 12 kB / 434 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.398e-05/0.2486, allocations: 23.92 kB / 434 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.587e-05/0.2486, allocations: 51.73 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002111/0.2488, allocations: 139.3 kB / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2488, allocations: 0 / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2488, allocations: 0 / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.2489, allocations: 0 / 434.2 MB, free: 3.477 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.0006407/0.2495, allocations: 356.4 kB / 434.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.2495, allocations: 12.03 kB / 434.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.04e-05/0.2496, allocations: 46.73 kB / 434.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.126e-05/0.2496, allocations: 20.84 kB / 434.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.2499, allocations: 142.3 kB / 434.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.2499, allocations: 12.38 kB / 434.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.65e-05/0.2499, allocations: 16.33 kB / 434.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005029/0.2504, allocations: 239.4 kB / 435.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.2505, allocations: 4 kB / 435.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.2505, allocations: 8 kB / 435.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.2505, allocations: 0 / 435.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002602/0.2507, allocations: 79.88 kB / 435.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00071/0.2514, allocations: 0.531 MB / 435.7 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.2518, allocations: 135.9 kB / 435.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.252, allocations: 74.62 kB / 435.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.252, allocations: 4 kB / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.252, allocations: 38.5 kB / 435.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.252, allocations: 0 / 435.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005174/0.2525, allocations: 185.3 kB / 436.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.639e-05/0.2526, allocations: 111.2 kB / 436.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.2527, allocations: 138.3 kB / 436.3 MB, free: 1.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.2528, allocations: 29.7 kB / 436.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.466e-05/0.2528, allocations: 124 kB / 436.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.2529, allocations: 31.78 kB / 436.5 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.329e-05/0.2529, allocations: 29.72 kB / 436.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.2531, allocations: 322.8 kB / 436.9 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.2532, allocations: 39.97 kB / 436.9 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.2534, allocations: 137.6 kB / 437 MB, free: 364 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.0004293/0.2538, allocations: 201.6 kB / 437.2 MB, free: 112 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.2538, allocations: 3.938 kB / 437.2 MB, free: 108 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003963/0.2542, allocations: 201.4 kB / 437.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.2542, allocations: 8 kB / 437.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2542, allocations: 4 kB / 437.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.2543, allocations: 4 kB / 437.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.2544, allocations: 47.91 kB / 437.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.2544, allocations: 4 kB / 437.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.2545, allocations: 24.28 kB / 437.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.2546, allocations: 12 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.0001242/0.2547, allocations: 133.5 kB / 437.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.2548, allocations: 85.58 kB / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.474e-05/0.2549, allocations: 20.7 kB / 437.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2549, allocations: 4 kB / 437.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2549, allocations: 3.938 kB / 437.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.2549, allocations: 0 / 437.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002631/0.2552, allocations: 180.5 kB / 438 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2552, allocations: 0 / 438 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.2554, allocations: 47.97 kB / 438 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2554, allocations: 0 / 438 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.2554, allocations: 7.984 kB / 438 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.2554, allocations: 3.938 kB / 438 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2554, allocations: 0 / 438 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005498/0.256, allocations: 386.2 kB / 438.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.047e-05/0.256, allocations: 11.94 kB / 438.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.256, allocations: 7.984 kB / 438.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.2561, allocations: 8.062 kB / 438.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.703e-05/0.2562, allocations: 12.08 kB / 438.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.2562, allocations: 7.938 kB / 438.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.61e-05/0.2563, allocations: 110 kB / 438.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2563, allocations: 0 / 438.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003132/0.2566, allocations: 31.89 kB / 438.6 MB, free: 14.68 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.0008492/0.2574, allocations: 0.9194 MB / 439.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003293/0.2578, allocations: 123.7 kB / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2578, allocations: 0 / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.639e-05/0.2579, allocations: 28.91 kB / 439.7 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.0005092/0.2584, allocations: 74.3 kB / 439.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.2609, allocations: 2.093 MB / 441.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.261, allocations: 102.7 kB / 441.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.797e-05/0.2611, allocations: 17.06 kB / 441.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.249e-05/0.2612, allocations: 39.42 kB / 442 MB, free: 11.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2612, allocations: 0 / 442 MB, free: 11.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03003/0.2912, allocations: 3.637 MB / 445.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.7, allocations: 0 / 445.6 MB, free: 7.617 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.09629880299326]