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.001349/0.001349, 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.001388/0.001388, 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.484/1.484, allocations: 230.5 MB / 257.4 MB, free: 7.762 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.89 kB / 377.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2779, allocations: 53.42 MB / 431.1 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003676/0.2815, allocations: 2.016 MB / 433.1 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.2826, allocations: 0.5103 MB / 433.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.2827, allocations: 4 kB / 433.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.2828, allocations: 15.8 kB / 433.7 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.88e-05/0.2829, allocations: 31.72 kB / 433.7 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002874/0.2832, allocations: 59.88 kB / 433.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002055/0.2834, allocations: 131.5 kB / 433.9 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.2836, allocations: 39.67 kB / 433.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.2837, allocations: 55.78 kB / 434 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.335e-05/0.2837, allocations: 39.78 kB / 434 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.862e-05/0.2838, allocations: 12 kB / 434 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.538e-05/0.2838, allocations: 12 kB / 434.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.133e-05/0.2838, allocations: 35.83 kB / 434.1 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.081e-05/0.2839, allocations: 47.73 kB / 434.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000219/0.2841, allocations: 131.3 kB / 434.3 MB, free: 3.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2841, allocations: 4 kB / 434.3 MB, free: 3.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2841, allocations: 0 / 434.3 MB, free: 3.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.2841, allocations: 0 / 434.3 MB, free: 3.27 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.0006445/0.2848, allocations: 357.8 kB / 434.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.2848, allocations: 15.92 kB / 434.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.423e-05/0.2849, allocations: 46.73 kB / 434.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.077e-05/0.2849, allocations: 16.84 kB / 434.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/0.2852, allocations: 150.3 kB / 434.8 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.2852, allocations: 16.36 kB / 434.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.221e-05/0.2852, allocations: 16.33 kB / 434.9 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004851/0.2857, allocations: 235.5 kB / 435.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.2857, allocations: 3.984 kB / 435.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.2858, allocations: 4 kB / 435.1 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.2858, allocations: 4 kB / 435.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002491/0.286, allocations: 95.05 kB / 435.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006769/0.2867, allocations: 0.5154 MB / 435.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003537/0.287, allocations: 143.9 kB / 435.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.2872, allocations: 62.64 kB / 435.9 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.2872, allocations: 8 kB / 435.9 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.2872, allocations: 42.48 kB / 436 MB, free: 1.375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.2872, allocations: 4 kB / 436 MB, free: 1.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005099/0.2878, allocations: 181.3 kB / 436.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.682e-05/0.2879, allocations: 106.8 kB / 436.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.288, allocations: 136.9 kB / 436.4 MB, free: 0.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.288, allocations: 29.7 kB / 436.4 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.224e-05/0.2881, allocations: 120 kB / 436.5 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.2881, allocations: 27.78 kB / 436.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.397e-05/0.2882, allocations: 41.83 kB / 436.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.2883, allocations: 326.8 kB / 436.9 MB, free: 368 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.2884, allocations: 35.97 kB / 437 MB, free: 332 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001913/0.2886, allocations: 137.6 kB / 437.1 MB, free: 148 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.0004374/0.2891, allocations: 200.7 kB / 437.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.2891, allocations: 11.94 kB / 437.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003756/0.2894, allocations: 201.5 kB / 437.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.2895, allocations: 12 kB / 437.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.2895, allocations: 4 kB / 437.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.2895, allocations: 4 kB / 437.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.2896, allocations: 51.91 kB / 437.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.2897, allocations: 4 kB / 437.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.2898, allocations: 19.89 kB / 437.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.2898, allocations: 12 kB / 437.6 MB, free: 15.58 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.0001212/0.2899, allocations: 133.7 kB / 437.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.2901, allocations: 89.58 kB / 437.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.505e-05/0.2901, allocations: 16.72 kB / 437.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2901, allocations: 4 kB / 437.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2901, allocations: 0 / 437.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.2901, allocations: 4.219 kB / 437.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002596/0.2904, allocations: 176.5 kB / 438 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2904, allocations: 0 / 438 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.2906, allocations: 47.89 kB / 438.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.2906, allocations: 4 kB / 438.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.2906, allocations: 4 kB / 438.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2906, allocations: 0 / 438.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.2906, allocations: 11.94 kB / 438.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005474/0.2912, allocations: 383.4 kB / 438.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.023e-05/0.2912, allocations: 7.984 kB / 438.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.2912, allocations: 8 kB / 438.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.2913, allocations: 7.984 kB / 438.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.33e-05/0.2914, allocations: 0 / 438.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.2914, allocations: 11.98 kB / 438.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.331e-05/0.2914, allocations: 106.1 kB / 438.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2914, allocations: 0 / 438.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003172/0.2918, allocations: 35.89 kB / 438.6 MB, free: 14.47 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.0008503/0.2926, allocations: 0.9117 MB / 439.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003362/0.293, allocations: 132 kB / 439.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.293, allocations: 0 / 439.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.975e-05/0.2931, allocations: 27.92 kB / 439.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004879/0.2935, allocations: 63.92 kB / 439.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.2963, allocations: 2.101 MB / 441.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001196/0.2964, allocations: 106.7 kB / 442 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.151e-05/0.2964, allocations: 5.094 kB / 442 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.402e-05/0.2965, allocations: 43.42 kB / 442 MB, free: 10.86 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2965, allocations: 0 / 442 MB, free: 10.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03164/0.3282, allocations: 3.594 MB / 445.6 MB, free: 7.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.14, allocations: 3.938 kB / 445.6 MB, free: 7.418 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.692351345904171]