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.001484/0.001484, 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.001922/0.001922, allocations: 214.2 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.509/1.509, allocations: 230.5 MB / 257.4 MB, free: 7.992 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.001959/0.001959, allocations: 59.91 kB / 377.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3024, allocations: 53.41 MB / 431.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004367/0.3068, allocations: 2.07 MB / 433.2 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.3082, allocations: 0.6232 MB / 433.9 MB, free: 4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.3083, allocations: 7.938 kB / 433.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.3085, allocations: 15.8 kB / 433.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002276/0.3087, allocations: 35.72 kB / 433.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004433/0.3092, allocations: 71.78 kB / 434 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002616/0.3094, allocations: 131.5 kB / 434.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002018/0.3096, allocations: 46.05 kB / 434.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.3098, allocations: 51.78 kB / 434.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.3099, allocations: 55.72 kB / 434.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.233e-05/0.3099, allocations: 8 kB / 434.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.651e-05/0.3099, allocations: 12 kB / 434.3 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.143e-05/0.31, allocations: 39.83 kB / 434.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.326e-05/0.3101, allocations: 63.61 kB / 434.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003009/0.3104, allocations: 143.7 kB / 434.5 MB, free: 3.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.3104, allocations: 4 kB / 434.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3104, allocations: 0 / 434.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.3104, allocations: 0 / 434.5 MB, free: 3.324 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.0007648/0.3112, allocations: 389.5 kB / 434.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.3112, allocations: 12.02 kB / 434.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.41e-05/0.3113, allocations: 46.75 kB / 435 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.597e-05/0.3113, allocations: 20.8 kB / 435 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003451/0.3117, allocations: 165.3 kB / 435.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.3117, allocations: 12.38 kB / 435.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.428e-05/0.3117, allocations: 12.38 kB / 435.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005365/0.3123, allocations: 253.3 kB / 435.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.3123, allocations: 4 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.3123, allocations: 4 kB / 435.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.3123, allocations: 4 kB / 435.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002613/0.3126, allocations: 83.88 kB / 435.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007186/0.3133, allocations: 0.5466 MB / 436.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000492/0.3138, allocations: 147.8 kB / 436.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.3139, allocations: 70.62 kB / 436.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.104e-05/0.314, allocations: 4 kB / 436.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.314, allocations: 30.56 kB / 436.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.314, allocations: 4 kB / 436.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005693/0.3146, allocations: 193.3 kB / 436.5 MB, free: 1.156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.185e-05/0.3147, allocations: 110.8 kB / 436.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.3149, allocations: 166.8 kB / 436.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.3149, allocations: 25.7 kB / 436.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.059e-05/0.315, allocations: 112.5 kB / 436.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/0.315, allocations: 39.84 kB / 436.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.283e-05/0.3151, allocations: 33.72 kB / 437 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.3152, allocations: 322.8 kB / 437.3 MB, free: 312 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.3153, allocations: 35.97 kB / 437.3 MB, free: 276 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001925/0.3155, allocations: 137.3 kB / 437.5 MB, free: 92 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003256/0.3159, allocations: 189.5 kB / 437.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.3159, allocations: 3.938 kB / 437.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003886/0.3163, allocations: 201.2 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.3163, allocations: 10.5 kB / 437.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.3163, allocations: 4 kB / 437.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.3163, allocations: 4 kB / 437.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.3165, allocations: 40.39 kB / 437.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.3165, allocations: 19.98 kB / 437.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.3166, allocations: 19.89 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.3166, allocations: 8 kB / 437.9 MB, free: 15.54 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.000134/0.3167, allocations: 145.6 kB / 438.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.3169, allocations: 89.53 kB / 438.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.882e-05/0.317, allocations: 16.72 kB / 438.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.317, allocations: 4 kB / 438.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.317, allocations: 7.984 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.317, allocations: 4 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.3173, allocations: 188.5 kB / 438.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3173, allocations: 0 / 438.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.3175, allocations: 39.91 kB / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.3175, allocations: 480 / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.3175, allocations: 4 kB / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3175, allocations: 0 / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3175, allocations: 0 / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005962/0.3181, allocations: 395.2 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/0.3182, allocations: 23.92 kB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.37e-05/0.3182, allocations: 8 kB / 438.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.3184, allocations: 11.98 kB / 438.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.674e-05/0.3184, allocations: 8.297 kB / 438.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.445e-06/0.3184, allocations: 4 kB / 438.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.653e-05/0.3185, allocations: 119.2 kB / 439 MB, free: 14.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3185, allocations: 0 / 439 MB, free: 14.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003304/0.3189, allocations: 31.94 kB / 439 MB, free: 14.39 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.0009606/0.3198, allocations: 0.9155 MB / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003618/0.3202, allocations: 128.5 kB / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3202, allocations: 0 / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.625e-05/0.3203, allocations: 23.98 kB / 440.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005545/0.3208, allocations: 66.05 kB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.3238, allocations: 2.113 MB / 442.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004459/0.3242, allocations: 0.7201 MB / 443 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.488e-05/0.3243, allocations: 13.42 kB / 443 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.589e-05/0.3244, allocations: 35.42 kB / 443 MB, free: 10.15 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3244, allocations: 8 kB / 443 MB, free: 10.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03306/0.3574, allocations: 3.184 MB / 446.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12, allocations: 10.78 kB / 446.2 MB, free: 7.094 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 & 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: 14.70647357100097]