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.001438/0.001438, 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.001609/0.001609, allocations: 214.9 kB / 24.52 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.39/1.39, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.001431/0.001431, allocations: 43.92 kB / 378.5 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2473, allocations: 53.36 MB / 431.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003406/0.2507, allocations: 2.012 MB / 433.8 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.2517, allocations: 0.5765 MB / 434.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.2518, allocations: 7.938 kB / 434.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.252, allocations: 15.8 kB / 434.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001854/0.2521, allocations: 43.69 kB / 434.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.2524, allocations: 63.81 kB / 434.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000186/0.2526, allocations: 123.6 kB / 434.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.2527, allocations: 48.16 kB / 434.7 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.483e-05/0.2528, allocations: 51.78 kB / 434.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.361e-05/0.2529, allocations: 63.7 kB / 434.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.2529, allocations: 12 kB / 434.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.074e-05/0.253, allocations: 12 kB / 434.9 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.399e-05/0.253, allocations: 27.91 kB / 434.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.233e-05/0.2531, allocations: 59.66 kB / 434.9 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.2533, allocations: 151.2 kB / 435.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.2533, allocations: 0 / 435.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2533, allocations: 0 / 435.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.2533, allocations: 0 / 435.1 MB, free: 3.438 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.0006096/0.2539, allocations: 388.2 kB / 435.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.254, allocations: 8.031 kB / 435.5 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.47e-05/0.254, allocations: 4.188 kB / 435.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.683e-05/0.254, allocations: 46.73 kB / 435.5 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.127e-05/0.2541, allocations: 24.8 kB / 435.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002561/0.2543, allocations: 154.2 kB / 435.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.2543, allocations: 8.375 kB / 435.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.19e-05/0.2544, allocations: 16.38 kB / 435.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004995/0.2549, allocations: 261.1 kB / 436 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2549, allocations: 0 / 436 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.2549, allocations: 4 kB / 436 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.2549, allocations: 7.984 kB / 436 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002498/0.2552, allocations: 91.86 kB / 436.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006102/0.2558, allocations: 0.5232 MB / 436.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.2561, allocations: 139.7 kB / 436.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.2563, allocations: 74.75 kB / 436.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.2563, allocations: 7.938 kB / 436.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.2563, allocations: 30.56 kB / 436.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.2563, allocations: 0 / 436.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005099/0.2568, allocations: 193.3 kB / 437 MB, free: 1.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.961e-05/0.2569, allocations: 110.8 kB / 437.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.2571, allocations: 162.2 kB / 437.3 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.2571, allocations: 29.7 kB / 437.3 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.22e-05/0.2572, allocations: 112.5 kB / 437.4 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.2572, allocations: 31.78 kB / 437.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.2572, allocations: 33.72 kB / 437.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.2574, allocations: 322.8 kB / 437.8 MB, free: 456 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.2575, allocations: 40.09 kB / 437.9 MB, free: 416 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.2577, allocations: 140.1 kB / 438 MB, free: 228 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003024/0.258, allocations: 189.5 kB / 438.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.258, allocations: 0 / 438.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003655/0.2583, allocations: 197.2 kB / 438.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.2584, allocations: 11.98 kB / 438.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.2584, allocations: 0 / 438.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.2584, allocations: 11.94 kB / 438.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.2585, allocations: 48.39 kB / 438.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.2585, allocations: 11.98 kB / 438.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.2586, allocations: 23.89 kB / 438.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.2587, allocations: 8 kB / 438.5 MB, free: 15.68 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.0001106/0.2588, allocations: 134.2 kB / 438.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.2589, allocations: 93.91 kB / 438.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.833e-05/0.259, allocations: 20.72 kB / 438.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.259, allocations: 4 kB / 438.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.259, allocations: 96 / 438.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.259, allocations: 7.922 kB / 438.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002611/0.2593, allocations: 184.6 kB / 438.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2593, allocations: 0 / 438.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/0.2595, allocations: 36.2 kB / 439 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2595, allocations: 0 / 439 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.2595, allocations: 8 kB / 439 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.2595, allocations: 3.938 kB / 439 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2595, allocations: 0 / 439 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005319/0.26, allocations: 387.4 kB / 439.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.754e-05/0.2601, allocations: 31.88 kB / 439.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.112e-05/0.2601, allocations: 0 / 439.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.2602, allocations: 8 kB / 439.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.639e-05/0.2603, allocations: 7.984 kB / 439.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.2603, allocations: 4 kB / 439.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.463e-05/0.2604, allocations: 123.2 kB / 439.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2604, allocations: 0 / 439.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003046/0.2607, allocations: 27.94 kB / 439.5 MB, free: 14.54 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.0008013/0.2615, allocations: 0.9302 MB / 440.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002958/0.2618, allocations: 120.6 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.2618, allocations: 4 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.234e-05/0.2619, allocations: 28.05 kB / 440.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004871/0.2623, allocations: 55.92 kB / 440.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/0.2647, allocations: 2.117 MB / 442.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.2649, allocations: 110.6 kB / 442.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.122e-05/0.2649, allocations: 13.42 kB / 442.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.06e-05/0.265, allocations: 43.36 kB / 443 MB, free: 10.9 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.265, allocations: 0 / 443 MB, free: 10.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.2891, allocations: 3.273 MB / 446.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.92, allocations: 4.062 kB / 446.2 MB, free: 7.836 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] "" 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: 13.390431398991495]