Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001424/0.001424, allocations: 114 kB / 20.43 MB, free: 1.457 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.001853/0.001853, allocations: 214.8 kB / 23.74 MB, free: 4.672 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.559/1.559, allocations: 230.5 MB / 257.4 MB, free: 7.965 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002177/0.002177, allocations: 63.89 kB / 377.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3077, allocations: 53.41 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004699/0.3124, allocations: 2.069 MB / 433.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.3138, allocations: 0.6193 MB / 433.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001942/0.314, allocations: 7.938 kB / 433.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000182/0.3141, allocations: 15.8 kB / 433.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003015/0.3145, allocations: 31.7 kB / 433.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000398/0.3148, allocations: 71.8 kB / 434 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002922/0.3151, allocations: 131.5 kB / 434.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.3153, allocations: 46.03 kB / 434.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001795/0.3155, allocations: 55.78 kB / 434.2 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.3156, allocations: 55.72 kB / 434.3 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.135e-05/0.3157, allocations: 8 kB / 434.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.798e-05/0.3157, allocations: 12 kB / 434.3 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.209e-05/0.3158, allocations: 39.83 kB / 434.3 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.3159, allocations: 63.61 kB / 434.4 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.3162, allocations: 147.7 kB / 434.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3162, allocations: 0 / 434.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3162, allocations: 0 / 434.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.3162, allocations: 4 kB / 434.5 MB, free: 3.293 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.0008669/0.3171, allocations: 385.5 kB / 434.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.3171, allocations: 12.03 kB / 434.9 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.023e-05/0.3172, allocations: 46.73 kB / 435 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.413e-05/0.3173, allocations: 20.8 kB / 435 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003906/0.3177, allocations: 161.3 kB / 435.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.947e-05/0.3177, allocations: 16.38 kB / 435.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.621e-05/0.3177, allocations: 12.38 kB / 435.2 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005996/0.3183, allocations: 258.6 kB / 435.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.3183, allocations: 0 / 435.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.3183, allocations: 4 kB / 435.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.3184, allocations: 4 kB / 435.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000318/0.3187, allocations: 83.88 kB / 435.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008087/0.3195, allocations: 0.5466 MB / 436.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.3199, allocations: 143.8 kB / 436.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.32, allocations: 82.56 kB / 436.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.32, allocations: 0 / 436.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.3201, allocations: 38.56 kB / 436.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.313e-06/0.3201, allocations: 0 / 436.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006085/0.3207, allocations: 189.4 kB / 436.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.523e-05/0.3208, allocations: 110.8 kB / 436.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.321, allocations: 162.8 kB / 436.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.321, allocations: 29.7 kB / 436.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.321e-05/0.3211, allocations: 112.5 kB / 436.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.799e-05/0.3211, allocations: 27.78 kB / 436.9 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.371e-05/0.3212, allocations: 37.66 kB / 437 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3214, allocations: 326.9 kB / 437.3 MB, free: 280 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.3215, allocations: 35.97 kB / 437.3 MB, free: 244 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.3217, allocations: 141.1 kB / 437.5 MB, free: 56 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003452/0.322, allocations: 189.5 kB / 437.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.351e-06/0.322, allocations: 3.938 kB / 437.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000423/0.3225, allocations: 193.3 kB / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.3225, allocations: 14.48 kB / 437.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3225, allocations: 4 kB / 437.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.3225, allocations: 4 kB / 437.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.3227, allocations: 43.92 kB / 437.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/0.3227, allocations: 7.984 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.3228, allocations: 20.3 kB / 437.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.3228, allocations: 12 kB / 437.9 MB, free: 15.52 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.0001412/0.323, allocations: 145.6 kB / 438.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002094/0.3232, allocations: 89.91 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.887e-05/0.3233, allocations: 20.72 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3233, allocations: 336 / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3233, allocations: 3.938 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.3233, allocations: 11.97 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002903/0.3236, allocations: 188.5 kB / 438.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3236, allocations: 4 kB / 438.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.3238, allocations: 39.91 kB / 438.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.3238, allocations: 0 / 438.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.3238, allocations: 8 kB / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.3238, allocations: 0 / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3238, allocations: 0 / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005913/0.3244, allocations: 387.4 kB / 438.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.692e-05/0.3244, allocations: 31.86 kB / 438.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.3245, allocations: 4 kB / 438.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.3246, allocations: 7.984 kB / 438.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.549e-05/0.3246, allocations: 8 kB / 438.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.3246, allocations: 8 kB / 438.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.3248, allocations: 115.3 kB / 439 MB, free: 14.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.3248, allocations: 0 / 439 MB, free: 14.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003402/0.3251, allocations: 31.94 kB / 439 MB, free: 14.36 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.0008846/0.326, allocations: 0.9231 MB / 440 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003339/0.3263, allocations: 119.7 kB / 440.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3263, allocations: 0.9375 kB / 440.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.458e-05/0.3264, allocations: 27.98 kB / 440.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.3269, allocations: 70.61 kB / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.3297, allocations: 2.117 MB / 442.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.3301, allocations: 0.7201 MB / 443 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.568e-05/0.3301, allocations: 13.42 kB / 443 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.237e-05/0.3302, allocations: 39.42 kB / 443.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3302, allocations: 0 / 443.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03414/0.3643, allocations: 3.167 MB / 446.2 MB, free: 7.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.84, allocations: 7.984 kB / 446.2 MB, free: 7.07 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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: 14.403941715834662]