Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 206.6 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.442/1.442, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 47.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2478, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003511/0.2514, allocations: 2.008 MB / 433.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.2525, allocations: 0.5726 MB / 433.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.2526, allocations: 7.938 kB / 433.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.2527, allocations: 19.8 kB / 433.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001686/0.2528, allocations: 39.69 kB / 433.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002671/0.2531, allocations: 67.75 kB / 433.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001882/0.2533, allocations: 127.6 kB / 433.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.2534, allocations: 45.98 kB / 433.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.939e-05/0.2535, allocations: 59.72 kB / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.97e-05/0.2536, allocations: 55.7 kB / 434.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.655e-05/0.2536, allocations: 12 kB / 434.1 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.777e-05/0.2537, allocations: 16 kB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.217e-05/0.2537, allocations: 35.84 kB / 434.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.531e-05/0.2538, allocations: 55.72 kB / 434.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002191/0.254, allocations: 145 kB / 434.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.254, allocations: 0 / 434.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.254, allocations: 0 / 434.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.254, allocations: 0 / 434.3 MB, free: 3.391 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.0006496/0.2547, allocations: 392 kB / 434.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.2547, allocations: 12.03 kB / 434.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.981e-05/0.2548, allocations: 50.73 kB / 434.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.235e-05/0.2548, allocations: 24.8 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.2551, allocations: 155.9 kB / 434.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.2551, allocations: 8.375 kB / 434.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.2551, allocations: 12.38 kB / 435 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005044/0.2557, allocations: 257.3 kB / 435.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.2557, allocations: 0 / 435.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.2557, allocations: 8 kB / 435.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2557, allocations: 0 / 435.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002511/0.2559, allocations: 91.86 kB / 435.3 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006213/0.2566, allocations: 0.5193 MB / 435.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003366/0.2569, allocations: 147.8 kB / 436 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.2571, allocations: 70.62 kB / 436 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.2571, allocations: 4 kB / 436 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.2571, allocations: 34.56 kB / 436.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.2571, allocations: 0 / 436.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005203/0.2576, allocations: 189.3 kB / 436.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.134e-05/0.2577, allocations: 119.3 kB / 436.4 MB, free: 1.109 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.2579, allocations: 154.2 kB / 436.5 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.2579, allocations: 33.64 kB / 436.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.633e-05/0.258, allocations: 116.5 kB / 436.7 MB, free: 0.793 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.258, allocations: 31.72 kB / 436.7 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.1e-05/0.258, allocations: 33.72 kB / 436.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.2582, allocations: 330.8 kB / 437.1 MB, free: 400 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.2583, allocations: 35.97 kB / 437.1 MB, free: 364 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.2585, allocations: 136 kB / 437.2 MB, free: 180 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003212/0.2588, allocations: 189.5 kB / 437.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.2588, allocations: 3.938 kB / 437.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003862/0.2592, allocations: 193.3 kB / 437.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.2592, allocations: 11.98 kB / 437.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2592, allocations: 4 kB / 437.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.2592, allocations: 4 kB / 437.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.2594, allocations: 47.92 kB / 437.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.2594, allocations: 7.984 kB / 437.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.2595, allocations: 16.27 kB / 437.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.2595, allocations: 16 kB / 437.7 MB, free: 15.64 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.0001125/0.2596, allocations: 137.7 kB / 437.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.2598, allocations: 93.53 kB / 437.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.65e-05/0.2599, allocations: 20.72 kB / 438 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.2599, allocations: 0 / 438 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.2599, allocations: 4 kB / 438 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.2599, allocations: 3.984 kB / 438 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002683/0.2602, allocations: 176.6 kB / 438.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2602, allocations: 0 / 438.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001787/0.2603, allocations: 43.91 kB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.2604, allocations: 4 kB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.2604, allocations: 4 kB / 438.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.2604, allocations: 4 kB / 438.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.2604, allocations: 4 kB / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005547/0.2609, allocations: 379.3 kB / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-05/0.261, allocations: 31.91 kB / 438.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.261, allocations: 4 kB / 438.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.2612, allocations: 12.06 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.305e-05/0.2612, allocations: 4.078 kB / 438.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.2612, allocations: 7.938 kB / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.299e-05/0.2613, allocations: 120.1 kB / 438.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2613, allocations: 0 / 438.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000328/0.2616, allocations: 31.89 kB / 438.8 MB, free: 14.5 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.0008282/0.2624, allocations: 0.9233 MB / 439.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003174/0.2628, allocations: 130.6 kB / 439.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2628, allocations: 0 / 439.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.457e-05/0.2629, allocations: 24.92 kB / 439.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004963/0.2634, allocations: 64.5 kB / 439.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.2658, allocations: 2.113 MB / 442 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001083/0.2659, allocations: 102.6 kB / 442.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.412e-05/0.266, allocations: 17.42 kB / 442.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.729e-05/0.2661, allocations: 39.42 kB / 442.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2661, allocations: 0 / 442.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03056/0.2966, allocations: 3.636 MB / 445.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.26, allocations: 3.859 kB / 445.8 MB, free: 7.414 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_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.825036989001092]