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.001811/0.001811, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001568/0.001568, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.49/1.49, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.001561/0.001561, allocations: 51.94 kB / 377.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3379, allocations: 53.35 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003925/0.3418, allocations: 2.068 MB / 433.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.3431, allocations: 0.6193 MB / 433.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.3432, allocations: 7.938 kB / 433.8 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000133/0.3433, allocations: 19.8 kB / 433.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001972/0.3435, allocations: 31.72 kB / 433.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00032/0.3439, allocations: 79.41 kB / 433.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002275/0.3441, allocations: 123.5 kB / 434.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.3443, allocations: 46.03 kB / 434.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.362e-05/0.3444, allocations: 55.8 kB / 434.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.3445, allocations: 59.69 kB / 434.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.189e-05/0.3445, allocations: 12 kB / 434.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.474e-05/0.3445, allocations: 12 kB / 434.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.952e-05/0.3446, allocations: 35.84 kB / 434.3 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.466e-05/0.3447, allocations: 67.61 kB / 434.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002515/0.3449, allocations: 151.6 kB / 434.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3449, allocations: 0 / 434.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3449, allocations: 0 / 434.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.3449, allocations: 4 kB / 434.5 MB, free: 3.469 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.0007253/0.3457, allocations: 381.6 kB / 434.9 MB, free: 3.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.3457, allocations: 8.031 kB / 434.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.251e-05/0.3458, allocations: 46.73 kB / 434.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.044e-05/0.3458, allocations: 24.8 kB / 434.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003281/0.3461, allocations: 163.9 kB / 435.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.3462, allocations: 8.375 kB / 435.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.088e-05/0.3462, allocations: 20.38 kB / 435.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005557/0.3468, allocations: 258.5 kB / 435.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.3468, allocations: 4 kB / 435.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.3468, allocations: 4 kB / 435.4 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.3468, allocations: 4 kB / 435.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002524/0.347, allocations: 83.88 kB / 435.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000739/0.3478, allocations: 0.5388 MB / 436 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003794/0.3482, allocations: 139.8 kB / 436.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.3483, allocations: 78.62 kB / 436.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.3484, allocations: 3.984 kB / 436.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.3484, allocations: 42.5 kB / 436.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.3484, allocations: 0 / 436.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005534/0.3489, allocations: 185.3 kB / 436.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.705e-05/0.349, allocations: 118.9 kB / 436.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.3492, allocations: 158.2 kB / 436.7 MB, free: 1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.3492, allocations: 25.7 kB / 436.8 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.3493, allocations: 120.5 kB / 436.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.357e-05/0.3494, allocations: 27.78 kB / 436.9 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.161e-05/0.3494, allocations: 34.09 kB / 436.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.3496, allocations: 318.8 kB / 437.2 MB, free: 472 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.3497, allocations: 43.97 kB / 437.3 MB, free: 428 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.35, allocations: 142 kB / 437.4 MB, free: 240 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003242/0.3503, allocations: 189.5 kB / 437.6 MB, free: 0 / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.638e-05/0.3503, allocations: 7.984 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003953/0.3507, allocations: 193.5 kB / 437.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.3507, allocations: 8 kB / 437.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.3508, allocations: 7.984 kB / 437.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.3508, allocations: 8.031 kB / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.3509, allocations: 43.92 kB / 437.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.351, allocations: 4 kB / 437.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.3511, allocations: 23.88 kB / 437.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.3511, allocations: 8 kB / 437.9 MB, free: 15.7 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.0001602/0.3512, allocations: 146.5 kB / 438.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/0.3514, allocations: 93.53 kB / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.849e-05/0.3515, allocations: 16.72 kB / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3515, allocations: 0 / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.3515, allocations: 7.938 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.3515, allocations: 3.984 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003236/0.3518, allocations: 184.6 kB / 438.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3518, allocations: 0 / 438.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.352, allocations: 39.97 kB / 438.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.352, allocations: 4 kB / 438.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.3521, allocations: 4 kB / 438.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3521, allocations: 0 / 438.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.3521, allocations: 11.94 kB / 438.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006353/0.3527, allocations: 383.4 kB / 438.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.844e-05/0.3528, allocations: 27.91 kB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.3528, allocations: 0 / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.3529, allocations: 15.98 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.701e-05/0.353, allocations: 0 / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.353, allocations: 4 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.3531, allocations: 119.2 kB / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3531, allocations: 0 / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003307/0.3535, allocations: 32 kB / 439 MB, free: 14.55 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.0009901/0.3545, allocations: 0.9272 MB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003597/0.3548, allocations: 119.8 kB / 440 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3548, allocations: 0 / 440 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.654e-05/0.3549, allocations: 28.86 kB / 440.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005596/0.3555, allocations: 67.98 kB / 440.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00278/0.3583, allocations: 2.118 MB / 442.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.3587, allocations: 0.7162 MB / 443 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.303e-05/0.3588, allocations: 13.42 kB / 443 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.263e-05/0.3588, allocations: 39.42 kB / 443 MB, free: 10.29 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3588, allocations: 0 / 443 MB, free: 10.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03806/0.3969, allocations: 3.173 MB / 446.2 MB, free: 7.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.92, allocations: 9.297 kB / 446.2 MB, free: 7.285 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.671347732000868]