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.001244/0.001244, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001489/0.001489, allocations: 207.9 kB / 23.73 MB, free: 4.391 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.477/1.477, allocations: 230.5 MB / 257.4 MB, free: 7.738 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.00293/0.00293, allocations: 55.91 kB / 377.7 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3182, allocations: 53.41 MB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003932/0.3222, allocations: 2.012 MB / 433.1 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.3234, allocations: 0.5765 MB / 433.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.3235, allocations: 7.938 kB / 433.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.3236, allocations: 19.8 kB / 433.7 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001869/0.3238, allocations: 35.7 kB / 433.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003473/0.3242, allocations: 67.25 kB / 433.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001922/0.3244, allocations: 135.5 kB / 434 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.3245, allocations: 38.05 kB / 434 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.971e-05/0.3246, allocations: 55.8 kB / 434.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.71e-05/0.3247, allocations: 51.69 kB / 434.1 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.712e-05/0.3247, allocations: 12 kB / 434.1 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.64e-05/0.3248, allocations: 12 kB / 434.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.787e-05/0.3248, allocations: 23.92 kB / 434.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.823e-05/0.3249, allocations: 59.66 kB / 434.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002506/0.3251, allocations: 152.9 kB / 434.4 MB, free: 3.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3251, allocations: 0 / 434.4 MB, free: 3.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3251, allocations: 0 / 434.4 MB, free: 3.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.3252, allocations: 0 / 434.4 MB, free: 3.203 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.0006796/0.3258, allocations: 385.6 kB / 434.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.3259, allocations: 15.98 kB / 434.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.396e-05/0.3259, allocations: 46.73 kB / 434.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.322e-05/0.326, allocations: 20.8 kB / 434.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.3262, allocations: 161.3 kB / 435 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.3263, allocations: 12.38 kB / 435 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.037e-05/0.3263, allocations: 12.38 kB / 435 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005294/0.3268, allocations: 258.6 kB / 435.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.3268, allocations: 0 / 435.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.3269, allocations: 8 kB / 435.3 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.3269, allocations: 3.984 kB / 435.3 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002583/0.3271, allocations: 91.88 kB / 435.4 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006534/0.3278, allocations: 0.5232 MB / 435.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003459/0.3281, allocations: 135.9 kB / 436 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.3283, allocations: 70.62 kB / 436.1 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.3283, allocations: 7.984 kB / 436.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.3283, allocations: 42.5 kB / 436.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.3283, allocations: 0 / 436.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005229/0.3289, allocations: 189.3 kB / 436.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.786e-05/0.329, allocations: 110.8 kB / 436.4 MB, free: 0.918 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.3291, allocations: 162.8 kB / 436.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.3291, allocations: 25.7 kB / 436.6 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.693e-05/0.3292, allocations: 120.5 kB / 436.7 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.904e-05/0.3292, allocations: 27.78 kB / 436.7 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.506e-05/0.3293, allocations: 33.72 kB / 436.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3295, allocations: 322.8 kB / 437.1 MB, free: 212 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.3296, allocations: 40.09 kB / 437.1 MB, free: 172 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001998/0.3298, allocations: 141 kB / 437.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.3301, allocations: 185.5 kB / 437.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.3301, allocations: 7.938 kB / 437.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000385/0.3305, allocations: 201.1 kB / 437.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3305, allocations: 8 kB / 437.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.3305, allocations: 4 kB / 437.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.3305, allocations: 4.469 kB / 437.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.3306, allocations: 51.86 kB / 437.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.3307, allocations: 7.984 kB / 437.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.3308, allocations: 19.89 kB / 437.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.3308, allocations: 8 kB / 437.8 MB, free: 15.44 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.0001201/0.3309, allocations: 141.7 kB / 437.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/0.331, allocations: 93.84 kB / 438 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.712e-05/0.3311, allocations: 20.72 kB / 438 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.3311, allocations: 0 / 438 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3311, allocations: 3.984 kB / 438 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3311, allocations: 8 kB / 438 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002829/0.3314, allocations: 172.6 kB / 438.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3314, allocations: 0 / 438.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.3316, allocations: 39.97 kB / 438.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.3316, allocations: 0 / 438.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.3316, allocations: 4 kB / 438.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3316, allocations: 0 / 438.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.3316, allocations: 3.938 kB / 438.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005661/0.3322, allocations: 390.6 kB / 438.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.812e-05/0.3323, allocations: 27.91 kB / 438.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.3323, allocations: 8 kB / 438.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.3324, allocations: 7.984 kB / 438.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.187e-05/0.3325, allocations: 4 kB / 438.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-06/0.3325, allocations: 4 kB / 438.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001075/0.3326, allocations: 119.2 kB / 438.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3326, allocations: 0 / 438.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003221/0.3329, allocations: 31.89 kB / 438.8 MB, free: 14.31 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.0009038/0.3338, allocations: 0.9233 MB / 439.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003454/0.3342, allocations: 116.9 kB / 439.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3342, allocations: 4.125 kB / 439.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.234e-05/0.3342, allocations: 31.92 kB / 439.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005274/0.3348, allocations: 67.22 kB / 440 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.3375, allocations: 2.116 MB / 442.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001222/0.3377, allocations: 110.6 kB / 442.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.538e-05/0.3377, allocations: 9.422 kB / 442.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.656e-05/0.3378, allocations: 39.42 kB / 442.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3378, allocations: 3.938 kB / 442.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03265/0.3704, allocations: 3.563 MB / 445.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.15, allocations: 7.938 kB / 445.8 MB, free: 7.258 MB / 350.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 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.csv","/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] "Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w [Calling sys.exit(0), Time elapsed: 13.785875705070794]