Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001522/0.001522, allocations: 118.3 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00183/0.00183, allocations: 222.3 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.635/1.635, allocations: 230.4 MB / 254.7 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002437/0.002437, allocations: 59.91 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.1648, allocations: 53.37 MB / 427 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.005522/0.1703, allocations: 1.885 MB / 428.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.1719, allocations: 0.491 MB / 429.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001891/0.1721, allocations: 0 / 429.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.1723, allocations: 11.88 kB / 429.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.1725, allocations: 23.78 kB / 429.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003695/0.1728, allocations: 35.91 kB / 429.5 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003434/0.1732, allocations: 103.6 kB / 429.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002072/0.1734, allocations: 29.38 kB / 429.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.1736, allocations: 43.84 kB / 429.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.1737, allocations: 43.78 kB / 429.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.631e-05/0.1737, allocations: 8 kB / 429.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.78e-05/0.1738, allocations: 12 kB / 429.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.761e-05/0.1738, allocations: 19.92 kB / 429.7 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.1739, allocations: 51.73 kB / 429.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003459/0.1743, allocations: 95.56 kB / 429.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.1743, allocations: 0 / 429.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1743, allocations: 3.938 kB / 429.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.186e-05/0.1743, allocations: 3.938 kB / 429.9 MB, free: 1.855 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001109/0.1754, allocations: 411.2 kB / 430.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.833e-05/0.1755, allocations: 12.03 kB / 430.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.165e-05/0.1755, allocations: 4.375 kB / 430.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.959e-05/0.1756, allocations: 42.73 kB / 430.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.368e-05/0.1756, allocations: 12.89 kB / 430.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005614/0.1762, allocations: 196.2 kB / 430.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.1762, allocations: 8.312 kB / 430.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.944e-05/0.1763, allocations: 12 kB / 430.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004429/0.1767, allocations: 123.3 kB / 430.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.1768, allocations: 0 / 430.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/0.1768, allocations: 8 kB / 430.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.1768, allocations: 0 / 430.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003138/0.1771, allocations: 75.86 kB / 430.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.1783, allocations: 0.5247 MB / 431.3 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.1786, allocations: 70.61 kB / 431.4 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.1787, allocations: 40.83 kB / 431.4 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.1787, allocations: 4 kB / 431.4 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/0.1788, allocations: 38.56 kB / 431.5 MB, free: 104 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.1788, allocations: 0 / 431.5 MB, free: 104 kB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.3037/0.4824, allocations: 120.5 kB / 431.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.4825, allocations: 52.38 kB / 431.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.4826, allocations: 129.6 kB / 431.7 MB, free: 11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.4827, allocations: 28.86 kB / 431.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.179e-05/0.4827, allocations: 110.5 kB / 431.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.593e-05/0.4828, allocations: 32.09 kB / 431.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.202e-05/0.4828, allocations: 29.72 kB / 431.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.747e-05/0.4829, allocations: 321.7 kB / 432.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.4831, allocations: 31.2 kB / 432.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.4832, allocations: 68.31 kB / 432.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.4835, allocations: 107.7 kB / 432.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.4835, allocations: 2.812 kB / 432.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003965/0.4839, allocations: 134.9 kB / 432.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.281e-05/0.4839, allocations: 8.438 kB / 432.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.4839, allocations: 1.406 kB / 432.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.613e-05/0.484, allocations: 6.281 kB / 432.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.4842, allocations: 34.34 kB / 432.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.4842, allocations: 1.531 kB / 432.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.888e-05/0.4843, allocations: 21.27 kB / 432.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.4843, allocations: 7.625 kB / 432.7 MB, free: 10.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 8.999e-05/0.4844, allocations: 116.8 kB / 432.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/0.4844, allocations: 12.11 kB / 432.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.07e-05/0.4845, allocations: 12.11 kB / 432.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.4845, allocations: 0.625 kB / 432.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.4845, allocations: 2.062 kB / 432.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4845, allocations: 0.6562 kB / 432.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002677/0.4848, allocations: 193.2 kB / 433 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4848, allocations: 3.875 kB / 433 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.4849, allocations: 20.5 kB / 433 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.4849, allocations: 8.297 kB / 433 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.832e-05/0.4849, allocations: 5.875 kB / 433 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.4849, allocations: 0.9688 kB / 433 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4849, allocations: 0 / 433 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005332/0.4855, allocations: 236.1 kB / 433.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.903e-05/0.4855, allocations: 85.27 kB / 433.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.4856, allocations: 5.625 kB / 433.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.824e-05/0.4857, allocations: 10.27 kB / 433.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.817e-05/0.4857, allocations: 6.125 kB / 433.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-06/0.4857, allocations: 1.594 kB / 433.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.184e-05/0.4858, allocations: 102.1 kB / 433.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4858, allocations: 3.719 kB / 433.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002587/0.486, allocations: 22.17 kB / 433.5 MB, free: 9.805 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0006162/0.4867, allocations: 0.7673 MB / 434.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002962/0.487, allocations: 78.3 kB / 434.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.487, allocations: 0.5 kB / 434.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.4871, allocations: 40.11 kB / 434.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003729/0.4875, allocations: 20.47 kB / 434.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.4894, allocations: 1.72 MB / 436.1 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001885/0.4896, allocations: 0.6998 MB / 436.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.462e-05/0.4897, allocations: 7.344 kB / 436.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.664e-05/0.4897, allocations: 32.47 kB / 436.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4897, allocations: 8.75 kB / 436.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02507/0.5148, allocations: 2.436 MB / 439.3 MB, free: 6.668 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.602/9.116, allocations: 18.36 kB / 439.3 MB, free: 6.656 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.initType,PI.k,PI.u,PI.x,PI.x_start,PI.y,PI.y_start,der(PI.x),der(load.phi),der(load.w),feedback.u1,feedback.u2,feedback.y,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,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.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: 12.088894261978567]