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.001229/0.001229, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001345/0.001345, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.36/1.36, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 51.91 kB / 378.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.24, allocations: 53.36 MB / 431.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00337/0.2434, allocations: 1.977 MB / 433.8 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009275/0.2443, allocations: 0.5103 MB / 434.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.2444, allocations: 7.938 kB / 434.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000107/0.2445, allocations: 15.8 kB / 434.4 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.354e-05/0.2446, allocations: 27.78 kB / 434.4 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002888/0.2449, allocations: 55.83 kB / 434.4 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000187/0.2451, allocations: 123.5 kB / 434.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.2452, allocations: 51.7 kB / 434.6 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.139e-05/0.2453, allocations: 47.8 kB / 434.6 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.327e-05/0.2454, allocations: 55.7 kB / 434.7 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.2455, allocations: 12 kB / 434.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.004e-05/0.2455, allocations: 8 kB / 434.7 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.719e-05/0.2455, allocations: 31.91 kB / 434.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.534e-05/0.2456, allocations: 43.8 kB / 434.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001878/0.2458, allocations: 123.5 kB / 434.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2458, allocations: 0 / 434.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2458, allocations: 0 / 434.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.2458, allocations: 4 kB / 434.9 MB, free: 3.566 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005991/0.2464, allocations: 353.7 kB / 435.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.2464, allocations: 8.031 kB / 435.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.767e-05/0.2464, allocations: 4.188 kB / 435.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.542e-05/0.2465, allocations: 46.73 kB / 435.3 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.2465, allocations: 16.84 kB / 435.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.2468, allocations: 157.5 kB / 435.5 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.2468, allocations: 12.38 kB / 435.5 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.345e-05/0.2468, allocations: 16.33 kB / 435.5 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005004/0.2473, allocations: 243.3 kB / 435.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.2473, allocations: 0 / 435.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.2473, allocations: 8 kB / 435.8 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.2474, allocations: 4 kB / 435.8 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000251/0.2476, allocations: 79.88 kB / 435.9 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000619/0.2482, allocations: 0.5155 MB / 436.4 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002823/0.2485, allocations: 143.8 kB / 436.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.2487, allocations: 74.62 kB / 436.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.2487, allocations: 4 kB / 436.6 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.2487, allocations: 30.56 kB / 436.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.2487, allocations: 0 / 436.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004972/0.2492, allocations: 181.4 kB / 436.8 MB, free: 1.504 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.893e-05/0.2493, allocations: 110.8 kB / 436.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.2494, allocations: 130 kB / 437 MB, free: 1.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.2494, allocations: 29.7 kB / 437.1 MB, free: 1.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.33e-05/0.2495, allocations: 120 kB / 437.2 MB, free: 1.074 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.861e-05/0.2495, allocations: 31.77 kB / 437.2 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.361e-05/0.2496, allocations: 33.7 kB / 437.2 MB, free: 1.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2497, allocations: 326.8 kB / 437.6 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.2498, allocations: 27.98 kB / 437.6 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.25, allocations: 128.8 kB / 437.7 MB, free: 488 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003028/0.2503, allocations: 184.8 kB / 437.9 MB, free: 256 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.2503, allocations: 4 kB / 437.9 MB, free: 252 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003731/0.2507, allocations: 193.6 kB / 438.1 MB, free: 52 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.2507, allocations: 15.95 kB / 438.1 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.2507, allocations: 7.938 kB / 438.1 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.2508, allocations: 4 kB / 438.1 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000181/0.2509, allocations: 36.05 kB / 438.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.2509, allocations: 11.94 kB / 438.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.842e-05/0.251, allocations: 23.81 kB / 438.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.2511, allocations: 8 kB / 438.2 MB, free: 15.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001125/0.2512, allocations: 129.7 kB / 438.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.2513, allocations: 81.95 kB / 438.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.181e-05/0.2514, allocations: 24.8 kB / 438.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2514, allocations: 11.88 kB / 438.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.2514, allocations: 0 / 438.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2514, allocations: 0 / 438.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.2516, allocations: 160.7 kB / 438.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2516, allocations: 4 kB / 438.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001643/0.2518, allocations: 31.98 kB / 438.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.942e-06/0.2518, allocations: 7.938 kB / 438.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.2518, allocations: 0 / 438.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2518, allocations: 0 / 438.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.2518, allocations: 11.98 kB / 438.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005137/0.2523, allocations: 367.5 kB / 439 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.123e-05/0.2523, allocations: 15.84 kB / 439 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.436e-05/0.2524, allocations: 7.938 kB / 439 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.2525, allocations: 7.984 kB / 439 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.619e-05/0.2525, allocations: 8 kB / 439 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.2525, allocations: 7.984 kB / 439 MB, free: 15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.342e-05/0.2526, allocations: 98.78 kB / 439.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2526, allocations: 4.062 kB / 439.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.2529, allocations: 28 kB / 439.2 MB, free: 14.88 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 (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.0007795/0.2537, allocations: 0.9065 MB / 440.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003005/0.254, allocations: 116.3 kB / 440.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.254, allocations: 4 kB / 440.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.442e-05/0.2541, allocations: 27.92 kB / 440.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004542/0.2545, allocations: 50.86 kB / 440.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.2569, allocations: 2.041 MB / 442.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.817e-05/0.257, allocations: 109.4 kB / 442.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.889e-05/0.257, allocations: 4.656 kB / 442.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.772e-05/0.2571, allocations: 39.42 kB / 442.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2571, allocations: 0 / 442.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/0.2813, allocations: 3.021 MB / 445.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.92, allocations: 0 / 445.5 MB, free: 8.543 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/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] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.Td,PI.kd,PI.u,PI.x,PI.y,der(load.phi),der(load.w),feedback.u1,feedback.u2,feedback.y,hold1.u,hold1.y,hold1.y_start,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,periodicClock.period,periodicClock.useSolver,previous(PI.x),ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sample1.u,sample1.y,sample2.u,sample2.y,speed.flange.phi,speed.flange.tau,speed.w,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 13.346296841045842]