Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001686/0.001686, allocations: 120 kB / 18.49 MB, free: 4.59 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.002089/0.002089, allocations: 214.3 kB / 21.45 MB, free: 1.637 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.648/1.648, allocations: 230.4 MB / 254.7 MB, free: 14.84 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 59.89 kB / 373.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1659, allocations: 53.38 MB / 427 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004096/0.17, allocations: 2.028 MB / 429.1 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.1712, allocations: 0.5609 MB / 429.6 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.1713, allocations: 4 kB / 429.6 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.1715, allocations: 19.8 kB / 429.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001986/0.1717, allocations: 31.72 kB / 429.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002931/0.172, allocations: 55.86 kB / 429.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000211/0.1722, allocations: 119.6 kB / 429.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.1724, allocations: 45.42 kB / 429.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.1725, allocations: 51.78 kB / 429.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.1726, allocations: 59.7 kB / 430 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.249e-05/0.1726, allocations: 8 kB / 430 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.231e-05/0.1726, allocations: 12 kB / 430 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.5e-05/0.1727, allocations: 23.92 kB / 430 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.624e-05/0.1728, allocations: 67.64 kB / 430.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002699/0.173, allocations: 127.4 kB / 430.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.173, allocations: 0 / 430.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.173, allocations: 0 / 430.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.173, allocations: 4 kB / 430.2 MB, free: 1.391 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007746/0.1738, allocations: 434.9 kB / 430.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.1739, allocations: 12.03 kB / 430.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.748e-05/0.1739, allocations: 4.172 kB / 430.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.048e-05/0.1739, allocations: 46.69 kB / 430.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.172e-05/0.174, allocations: 16.84 kB / 430.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.1743, allocations: 216.1 kB / 431 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.1744, allocations: 8.375 kB / 431 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.657e-05/0.1744, allocations: 12.38 kB / 431 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006346/0.175, allocations: 258.5 kB / 431.2 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.1751, allocations: 4 kB / 431.2 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.195e-05/0.1751, allocations: 4 kB / 431.2 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.1751, allocations: 0 / 431.2 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002969/0.1754, allocations: 87.88 kB / 431.3 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3301/0.5055, allocations: 0.591 MB / 431.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005268/0.5061, allocations: 144.1 kB / 432.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002327/0.5063, allocations: 70.81 kB / 432.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.886e-05/0.5064, allocations: 4.531 kB / 432.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.5064, allocations: 38.55 kB / 432.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 3.336e-06/0.5064, allocations: 0 / 432.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008275/0.5072, allocations: 177.9 kB / 432.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.5073, allocations: 121.2 kB / 432.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.5075, allocations: 135.2 kB / 432.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.5075, allocations: 26.3 kB / 432.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.124e-05/0.5076, allocations: 118.5 kB / 432.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.076e-05/0.5076, allocations: 31.61 kB / 432.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.364e-05/0.5077, allocations: 34.14 kB / 432.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.5078, allocations: 327.4 kB / 433.1 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.508, allocations: 39.05 kB / 433.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002545/0.5082, allocations: 135.7 kB / 433.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003781/0.5086, allocations: 190 kB / 433.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.5086, allocations: 4.219 kB / 433.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004696/0.5091, allocations: 192.7 kB / 433.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.879e-05/0.5091, allocations: 6.969 kB / 433.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.5091, allocations: 3.75 kB / 433.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.689e-05/0.5091, allocations: 12.16 kB / 433.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.5093, allocations: 43.48 kB / 433.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.54e-05/0.5093, allocations: 7.625 kB / 433.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.5094, allocations: 21.69 kB / 433.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.5095, allocations: 11.41 kB / 433.8 MB, free: 9.496 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.0001057/0.5096, allocations: 127.7 kB / 433.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.5097, allocations: 94.48 kB / 434 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.505e-05/0.5098, allocations: 23.14 kB / 434 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.5098, allocations: 2.031 kB / 434 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.5098, allocations: 1.562 kB / 434 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.5098, allocations: 3.562 kB / 434 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002729/0.5101, allocations: 205.7 kB / 434.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.5101, allocations: 1.766 kB / 434.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001881/0.5103, allocations: 34.09 kB / 434.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.5103, allocations: 5.312 kB / 434.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.5103, allocations: 9.219 kB / 434.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.5103, allocations: 5.375 kB / 434.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5103, allocations: 1.062 kB / 434.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005378/0.5109, allocations: 375.1 kB / 434.6 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.156e-05/0.5109, allocations: 88.62 kB / 434.7 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.5109, allocations: 11.39 kB / 434.7 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.5111, allocations: 7.391 kB / 434.7 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/0.5111, allocations: 8.391 kB / 434.8 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-06/0.5111, allocations: 3.219 kB / 434.8 MB, free: 8.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.381e-05/0.5112, allocations: 109 kB / 434.9 MB, free: 8.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.5112, allocations: 0 / 434.9 MB, free: 8.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000335/0.5115, allocations: 30.67 kB / 434.9 MB, free: 8.746 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.0007222/0.5123, allocations: 0.9169 MB / 435.8 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003446/0.5126, allocations: 119.5 kB / 435.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5126, allocations: 4.062 kB / 435.9 MB, free: 7.984 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.865e-05/0.5127, allocations: 25.55 kB / 436 MB, free: 7.984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005064/0.5132, allocations: 61.59 kB / 436 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.5155, allocations: 2.058 MB / 438.1 MB, free: 6.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001856/0.5156, allocations: 0.7151 MB / 438.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.327e-05/0.5157, allocations: 12.83 kB / 438.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.989e-05/0.5158, allocations: 37.56 kB / 438.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of SimCode: time 1.493e-06/0.5158, allocations: 0 / 438.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02356/0.5393, allocations: 2.848 MB / 441.7 MB, free: 5.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.724/9.263, allocations: 7.219 kB / 441.7 MB, free: 5.176 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.276041860983241]