Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001818/0.001818, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002369/0.002369, allocations: 209.2 kB / 23.73 MB, free: 4.387 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.399/1.399, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 55.91 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2343, allocations: 53.36 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003434/0.2377, allocations: 2.004 MB / 433.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.2388, allocations: 0.5687 MB / 433.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.2389, allocations: 7.938 kB / 433.6 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.239, allocations: 23.8 kB / 433.7 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.2392, allocations: 31.7 kB / 433.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.2395, allocations: 71.8 kB / 433.8 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001942/0.2397, allocations: 139.4 kB / 433.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.2398, allocations: 34.05 kB / 433.9 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.594e-05/0.2399, allocations: 55.84 kB / 434 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.861e-05/0.24, allocations: 51.64 kB / 434 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.574e-05/0.24, allocations: 12 kB / 434.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.502e-05/0.24, allocations: 12 kB / 434.1 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.782e-05/0.2401, allocations: 31.84 kB / 434.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.354e-05/0.2401, allocations: 55.67 kB / 434.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002188/0.2403, allocations: 149 kB / 434.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2403, allocations: 0 / 434.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.2404, allocations: 3.984 kB / 434.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.2404, allocations: 4 kB / 434.3 MB, free: 3.379 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006095/0.241, allocations: 388.1 kB / 434.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.241, allocations: 12.03 kB / 434.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.347e-05/0.2411, allocations: 46.73 kB / 434.7 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.2411, allocations: 20.8 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002599/0.2414, allocations: 155.9 kB / 434.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.2414, allocations: 12.38 kB / 434.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.038e-05/0.2414, allocations: 16.38 kB / 434.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/0.2419, allocations: 257.3 kB / 435.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.2419, allocations: 0 / 435.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.2419, allocations: 8 kB / 435.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.242, allocations: 0 / 435.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002553/0.2422, allocations: 95.86 kB / 435.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006257/0.2428, allocations: 0.5116 MB / 435.8 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003494/0.2432, allocations: 147.6 kB / 436 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.2433, allocations: 74.75 kB / 436 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.2434, allocations: 7.984 kB / 436 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.2434, allocations: 38.56 kB / 436.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.036e-06/0.2434, allocations: 4 kB / 436.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000509/0.2439, allocations: 185.6 kB / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.242e-05/0.244, allocations: 110.9 kB / 436.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.2441, allocations: 162.2 kB / 436.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.2442, allocations: 29.7 kB / 436.6 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.687e-05/0.2442, allocations: 116.5 kB / 436.7 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.996e-05/0.2443, allocations: 27.78 kB / 436.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.544e-05/0.2443, allocations: 33.72 kB / 436.7 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.2445, allocations: 327 kB / 437 MB, free: 396 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.2446, allocations: 39.91 kB / 437.1 MB, free: 356 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.2447, allocations: 137.7 kB / 437.2 MB, free: 168 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.2451, allocations: 181.6 kB / 437.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.2451, allocations: 7.875 kB / 437.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003855/0.2454, allocations: 193.2 kB / 437.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.2455, allocations: 8 kB / 437.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.2455, allocations: 4.469 kB / 437.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.2455, allocations: 11.98 kB / 437.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.2456, allocations: 43.92 kB / 437.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.2456, allocations: 4 kB / 437.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.2458, allocations: 23.88 kB / 437.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.2458, allocations: 8 kB / 437.7 MB, free: 15.63 MB / 350.1 MB 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.000115/0.2459, allocations: 141.7 kB / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.246, allocations: 89.53 kB / 437.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.778e-05/0.2461, allocations: 20.72 kB / 437.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2461, allocations: 0 / 437.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2461, allocations: 4 kB / 437.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2461, allocations: 7.984 kB / 438 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002562/0.2464, allocations: 176.5 kB / 438.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2464, allocations: 0 / 438.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001757/0.2465, allocations: 39.92 kB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2465, allocations: 0 / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.2466, allocations: 11.92 kB / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2466, allocations: 0 / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2466, allocations: 4 kB / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000546/0.2471, allocations: 387.4 kB / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.311e-05/0.2472, allocations: 27.91 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.2472, allocations: 8 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.2473, allocations: 8.031 kB / 438.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.372e-05/0.2474, allocations: 12.16 kB / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.918e-06/0.2474, allocations: 4 kB / 438.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.259e-05/0.2475, allocations: 120.1 kB / 438.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2475, allocations: 0 / 438.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003164/0.2478, allocations: 31.89 kB / 438.8 MB, free: 14.48 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.0008177/0.2486, allocations: 0.9265 MB / 439.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003164/0.2489, allocations: 124.6 kB / 439.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2489, allocations: 4.062 kB / 439.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.249, allocations: 23.98 kB / 439.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.2496, allocations: 59.92 kB / 439.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.252, allocations: 2.109 MB / 442 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.2521, allocations: 110.6 kB / 442.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.191e-05/0.2521, allocations: 13.42 kB / 442.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.11e-05/0.2522, allocations: 35.42 kB / 442.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2522, allocations: 0 / 442.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0318/0.284, allocations: 3.577 MB / 445.7 MB, free: 7.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.03, allocations: 11.8 kB / 445.8 MB, free: 7.465 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.42932324623689]