Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 117.8 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 190.7 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 47.92 kB / 366.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1285, allocations: 52.14 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003991/0.1325, allocations: 2.007 MB / 420.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.1337, allocations: 0.5064 MB / 421 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.1338, allocations: 0 / 421 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.134, allocations: 19.8 kB / 421 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001074/0.1341, allocations: 23.73 kB / 421 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003733/0.1345, allocations: 59.88 kB / 421.1 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002324/0.1347, allocations: 123.5 kB / 421.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.1349, allocations: 45.36 kB / 421.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.135, allocations: 47.84 kB / 421.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.1351, allocations: 59.7 kB / 421.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.861e-05/0.1351, allocations: 11.94 kB / 421.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.236e-05/0.1351, allocations: 12 kB / 421.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.327e-05/0.1352, allocations: 27.91 kB / 421.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.796e-05/0.1353, allocations: 55.73 kB / 421.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.1355, allocations: 123.4 kB / 421.6 MB, free: 9.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.817e-06/0.1355, allocations: 4 kB / 421.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1355, allocations: 0 / 421.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1355, allocations: 0 / 421.6 MB, free: 9.496 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.000727/0.1363, allocations: 430.9 kB / 422 MB, free: 9.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.1363, allocations: 11.89 kB / 422 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.835e-05/0.1363, allocations: 4.188 kB / 422 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.607e-05/0.1364, allocations: 46.73 kB / 422.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/0.1364, allocations: 16.84 kB / 422.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003669/0.1368, allocations: 212.1 kB / 422.3 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.1368, allocations: 16.38 kB / 422.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/0.1369, allocations: 12.38 kB / 422.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005511/0.1374, allocations: 238.5 kB / 422.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.1374, allocations: 3.953 kB / 422.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.1375, allocations: 7.938 kB / 422.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.1375, allocations: 0 / 422.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002992/0.1378, allocations: 91.92 kB / 422.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007477/0.1385, allocations: 0.5804 MB / 423.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003084/0.1388, allocations: 147.9 kB / 423.4 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.139, allocations: 70.56 kB / 423.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.139, allocations: 7.984 kB / 423.4 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.1391, allocations: 34.56 kB / 423.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.184e-06/0.1391, allocations: 0 / 423.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005809/0.1396, allocations: 185.6 kB / 423.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.364e-05/0.1397, allocations: 110.8 kB / 423.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.1399, allocations: 130.1 kB / 423.9 MB, free: 6.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.1399, allocations: 25.7 kB / 423.9 MB, free: 6.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.811e-05/0.14, allocations: 116.1 kB / 424 MB, free: 6.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.514e-05/0.14, allocations: 35.91 kB / 424.1 MB, free: 6.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.1401, allocations: 25.72 kB / 424.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1402, allocations: 322.8 kB / 424.4 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.1403, allocations: 39.91 kB / 424.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.1405, allocations: 138.8 kB / 424.6 MB, free: 6.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.1408, allocations: 176.7 kB / 424.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.1408, allocations: 4 kB / 424.8 MB, free: 5.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003858/0.1412, allocations: 185.3 kB / 424.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1412, allocations: 7.938 kB / 425 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.1412, allocations: 4 kB / 425 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.1413, allocations: 4 kB / 425 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.1414, allocations: 47.91 kB / 425 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.1414, allocations: 11.94 kB / 425 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.1416, allocations: 24.31 kB / 425 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.1416, allocations: 12 kB / 425.1 MB, free: 5.617 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.0001193/0.1417, allocations: 125.8 kB / 425.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.1418, allocations: 89.47 kB / 425.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.063e-05/0.1419, allocations: 20.7 kB / 425.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1419, allocations: 4 kB / 425.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1419, allocations: 0 / 425.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.1419, allocations: 0 / 425.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002987/0.1422, allocations: 197.6 kB / 425.5 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1422, allocations: 4 kB / 425.5 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.1424, allocations: 35.92 kB / 425.5 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.1424, allocations: 3.938 kB / 425.5 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.1424, allocations: 4 kB / 425.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.1424, allocations: 0 / 425.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1424, allocations: 0 / 425.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006008/0.143, allocations: 389 kB / 425.9 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.393e-05/0.1431, allocations: 89.12 kB / 426 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.459e-05/0.1431, allocations: 11.88 kB / 426 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.1432, allocations: 11.98 kB / 426 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.828e-05/0.1433, allocations: 4 kB / 426 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.1433, allocations: 4.234 kB / 426 MB, free: 4.539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.16e-05/0.1434, allocations: 107.3 kB / 426.1 MB, free: 4.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1434, allocations: 0 / 426.1 MB, free: 4.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003385/0.1437, allocations: 27.95 kB / 426.2 MB, free: 4.406 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.0009416/0.1446, allocations: 0.9077 MB / 427.1 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003578/0.145, allocations: 119.8 kB / 427.2 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.145, allocations: 4.812 kB / 427.2 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.1451, allocations: 27.98 kB / 427.2 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005199/0.1456, allocations: 55.92 kB / 427.3 MB, free: 3.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/0.1484, allocations: 2.029 MB / 429.3 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.1488, allocations: 0.7083 MB / 430 MB, free: 340 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.54e-05/0.1489, allocations: 16.64 kB / 430 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.57e-05/0.149, allocations: 35.42 kB / 430.1 MB, free: 288 kB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.149, allocations: 0 / 430.1 MB, free: 288 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.1713, allocations: 2.811 MB / 432.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.206/8.378, allocations: 6.547 kB / 432.9 MB, free: 13.68 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 11.0832034900086]