Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001425/0.001425, allocations: 116.4 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.001584/0.001584, allocations: 215.1 kB / 23.75 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.498/1.498, 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 59.84 kB / 377.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.313, allocations: 53.41 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004332/0.3173, allocations: 2.09 MB / 433.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.3186, allocations: 0.5492 MB / 433.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.3187, allocations: 7.938 kB / 433.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.3188, allocations: 19.8 kB / 433.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.39e-05/0.3189, allocations: 23.78 kB / 433.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.3192, allocations: 63.38 kB / 433.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002259/0.3195, allocations: 131.4 kB / 434 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.3196, allocations: 41.98 kB / 434.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.3197, allocations: 51.84 kB / 434.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.3199, allocations: 59.7 kB / 434.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.357e-05/0.3199, allocations: 8 kB / 434.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.329e-05/0.3199, allocations: 15.94 kB / 434.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.493e-05/0.3199, allocations: 23.92 kB / 434.2 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.964e-05/0.32, allocations: 63.61 kB / 434.3 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002396/0.3203, allocations: 135.8 kB / 434.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3203, allocations: 0 / 434.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3203, allocations: 0 / 434.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.3203, allocations: 0 / 434.4 MB, free: 3.402 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006954/0.321, allocations: 361.8 kB / 434.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.321, allocations: 8.031 kB / 434.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.672e-05/0.3211, allocations: 46.73 kB / 434.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.04e-05/0.3211, allocations: 16.84 kB / 434.9 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.3214, allocations: 154.3 kB / 435 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.3215, allocations: 8.375 kB / 435 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.95e-05/0.3215, allocations: 12.38 kB / 435 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005507/0.3221, allocations: 243.4 kB / 435.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.3221, allocations: 0 / 435.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.3221, allocations: 4 kB / 435.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.3221, allocations: 4 kB / 435.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002517/0.3223, allocations: 87.23 kB / 435.4 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007741/0.3231, allocations: 0.5466 MB / 435.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003938/0.3235, allocations: 143.9 kB / 436 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.3237, allocations: 66.62 kB / 436.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.3237, allocations: 11.92 kB / 436.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.3237, allocations: 34.56 kB / 436.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.663e-06/0.3237, allocations: 4 kB / 436.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006093/0.3244, allocations: 181.3 kB / 436.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.3245, allocations: 111.2 kB / 436.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.3246, allocations: 140.9 kB / 436.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.3246, allocations: 29.7 kB / 436.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.3247, allocations: 120.1 kB / 436.7 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.887e-05/0.3248, allocations: 31.72 kB / 436.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.291e-05/0.3248, allocations: 33.72 kB / 436.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.325, allocations: 322.8 kB / 437.1 MB, free: 488 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.3251, allocations: 35.97 kB / 437.1 MB, free: 452 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.3254, allocations: 149.2 kB / 437.3 MB, free: 256 kB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004548/0.3258, allocations: 204.6 kB / 437.5 MB, free: 4 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.132e-05/0.3259, allocations: 4.203 kB / 437.5 MB, free: 16 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004078/0.3263, allocations: 197.5 kB / 437.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.3263, allocations: 8.031 kB / 437.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3263, allocations: 8 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.3263, allocations: 4 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.3265, allocations: 51.91 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.3265, allocations: 7.984 kB / 437.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.3266, allocations: 19.88 kB / 437.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.3266, allocations: 12 kB / 437.8 MB, free: 15.69 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001407/0.3268, allocations: 133.7 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.327, allocations: 89.58 kB / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.34e-05/0.327, allocations: 20.7 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.3271, allocations: 0 / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3271, allocations: 4 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3271, allocations: 0 / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003247/0.3274, allocations: 188.5 kB / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3274, allocations: 4 kB / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.3276, allocations: 43.91 kB / 438.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.3276, allocations: 0 / 438.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.418e-05/0.3277, allocations: 15.92 kB / 438.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.3277, allocations: 4 kB / 438.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3277, allocations: 0 / 438.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006265/0.3283, allocations: 381.9 kB / 438.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.48e-05/0.3283, allocations: 16.05 kB / 438.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.3283, allocations: 4 kB / 438.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.3285, allocations: 8 kB / 438.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.3285, allocations: 7.922 kB / 438.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.3285, allocations: 4.094 kB / 438.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.689e-05/0.3286, allocations: 113.9 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3286, allocations: 0 / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.3289, allocations: 27.95 kB / 438.8 MB, free: 14.57 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.0009211/0.3299, allocations: 0.9158 MB / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003806/0.3302, allocations: 127.7 kB / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3302, allocations: 0 / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.3303, allocations: 28.06 kB / 439.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005409/0.3309, allocations: 65 kB / 440 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003185/0.3341, allocations: 2.097 MB / 442.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.3345, allocations: 0.7123 MB / 442.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.175e-05/0.3345, allocations: 13.08 kB / 442.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.979e-05/0.3346, allocations: 39.42 kB / 442.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of SimCode: time 1.393e-06/0.3346, allocations: 0 / 442.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03426/0.3689, allocations: 3.201 MB / 446 MB, free: 7.273 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12, allocations: 11.48 kB / 446 MB, free: 7.266 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_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_ClockedWithDiscretizedContinuousController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_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.709506952000083]