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.001485/0.001485, allocations: 113 kB / 18.49 MB, free: 4.539 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.001982/0.001982, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.518/1.518, allocations: 230.6 MB / 254.8 MB, free: 15.08 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 47.92 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1297, allocations: 53.33 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003997/0.1337, allocations: 2.049 MB / 429 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.1349, allocations: 0.6115 MB / 429.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.135, allocations: 7.938 kB / 429.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.1352, allocations: 15.8 kB / 429.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001899/0.1354, allocations: 35.7 kB / 429.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003117/0.1357, allocations: 75.75 kB / 429.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002107/0.1359, allocations: 127.5 kB / 429.9 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.136, allocations: 45.86 kB / 430 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.345e-05/0.1361, allocations: 51.73 kB / 430 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.1362, allocations: 63.69 kB / 430.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.732e-05/0.1363, allocations: 16 kB / 430.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.313e-05/0.1363, allocations: 8 kB / 430.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.98e-05/0.1364, allocations: 31.91 kB / 430.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.763e-05/0.1364, allocations: 63.61 kB / 430.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002488/0.1367, allocations: 151.2 kB / 430.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1367, allocations: 3.938 kB / 430.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1367, allocations: 0 / 430.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.1367, allocations: 3.938 kB / 430.3 MB, free: 1.422 MB / 350.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.0007807/0.1375, allocations: 462.7 kB / 430.8 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.1375, allocations: 12.03 kB / 430.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.993e-05/0.1376, allocations: 4.188 kB / 430.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.148e-05/0.1376, allocations: 46.73 kB / 430.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.393e-05/0.1377, allocations: 20.8 kB / 430.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003747/0.138, allocations: 216.1 kB / 431.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.1381, allocations: 12.38 kB / 431.1 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.417e-05/0.1381, allocations: 12.38 kB / 431.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005701/0.1387, allocations: 261.2 kB / 431.4 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.1387, allocations: 0 / 431.4 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.1387, allocations: 8 kB / 431.4 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.1387, allocations: 4 kB / 431.4 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002734/0.139, allocations: 91.86 kB / 431.5 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007825/0.1398, allocations: 0.5961 MB / 432.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.1401, allocations: 131.9 kB / 432.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.1403, allocations: 74.62 kB / 432.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.1403, allocations: 7.906 kB / 432.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.1404, allocations: 38.56 kB / 432.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.1404, allocations: 0 / 432.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005916/0.141, allocations: 185.3 kB / 432.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.222e-05/0.141, allocations: 122.9 kB / 432.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/0.1412, allocations: 158.2 kB / 432.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.1413, allocations: 29.7 kB / 432.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.649e-05/0.1413, allocations: 112.5 kB / 432.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.035e-05/0.1414, allocations: 28.16 kB / 432.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.533e-05/0.1414, allocations: 37.72 kB / 433 MB, free: 14.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.1416, allocations: 318.8 kB / 433.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.1417, allocations: 39.97 kB / 433.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.1419, allocations: 141.6 kB / 433.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003386/0.1423, allocations: 197.6 kB / 433.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1423, allocations: 0 / 433.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003982/0.1427, allocations: 197.5 kB / 433.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.1427, allocations: 8 kB / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1427, allocations: 4 kB / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.1427, allocations: 4 kB / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.1429, allocations: 47.92 kB / 433.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.1429, allocations: 11.92 kB / 433.9 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.143, allocations: 15.89 kB / 433.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/0.143, allocations: 12 kB / 433.9 MB, free: 13.41 MB / 366.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.0001326/0.1432, allocations: 137.9 kB / 434.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.1433, allocations: 93.53 kB / 434.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.617e-05/0.1434, allocations: 20.7 kB / 434.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1434, allocations: 0 / 434.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.1434, allocations: 4 kB / 434.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.1434, allocations: 0 / 434.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003135/0.1438, allocations: 213.5 kB / 434.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1438, allocations: 0 / 434.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001876/0.1439, allocations: 47.91 kB / 434.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.1439, allocations: 4 kB / 434.5 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.144, allocations: 4 kB / 434.5 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.144, allocations: 0 / 434.5 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.144, allocations: 0 / 434.5 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005927/0.1446, allocations: 391.3 kB / 434.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.442e-05/0.1447, allocations: 101 kB / 434.9 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.543e-05/0.1447, allocations: 4 kB / 434.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.1448, allocations: 11.98 kB / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.527e-05/0.1449, allocations: 7.984 kB / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.1449, allocations: 7.938 kB / 435 MB, free: 12.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001175/0.145, allocations: 120.1 kB / 435.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.145, allocations: 0 / 435.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003303/0.1453, allocations: 31.94 kB / 435.1 MB, free: 12.13 MB / 366.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.000926/0.1462, allocations: 0.9294 MB / 436.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003543/0.1466, allocations: 121 kB / 436.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1466, allocations: 0 / 436.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.1467, allocations: 32.84 kB / 436.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005195/0.1472, allocations: 56.06 kB / 436.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/0.15, allocations: 2.115 MB / 438.4 MB, free: 8.672 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004049/0.1504, allocations: 0.7201 MB / 439.1 MB, free: 7.926 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.944e-05/0.1505, allocations: 17.42 kB / 439.1 MB, free: 7.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.816e-05/0.1506, allocations: 35.44 kB / 439.1 MB, free: 7.875 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1506, allocations: 0 / 439.1 MB, free: 7.875 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.1728, allocations: 3.032 MB / 442.2 MB, free: 5.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.561/8.734, allocations: 7.719 kB / 442.2 MB, free: 5.051 MB / 366.1 MB " [Timeout remaining time 651] (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] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,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.factor,periodicClock.resolution,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: 11.572452414955478]