Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 55.92 kB / 370.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3376, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00389/0.3414, allocations: 2.061 MB / 424.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.3427, allocations: 0.5804 MB / 425.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.3428, allocations: 7.938 kB / 425.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.343, allocations: 15.8 kB / 425.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001945/0.3432, allocations: 31.72 kB / 425.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.3435, allocations: 75.8 kB / 425.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002303/0.3437, allocations: 127.6 kB / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.3438, allocations: 42.05 kB / 425.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.872e-05/0.3439, allocations: 55.78 kB / 425.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.3441, allocations: 63.69 kB / 425.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.386e-05/0.3441, allocations: 12 kB / 425.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.163e-05/0.3441, allocations: 8 kB / 425.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.966e-05/0.3442, allocations: 31.86 kB / 425.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.634e-05/0.3443, allocations: 63.61 kB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.3445, allocations: 151.7 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3445, allocations: 0 / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3445, allocations: 4 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.3445, allocations: 0 / 425.9 MB, free: 11.29 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.0006517/0.3452, allocations: 385.5 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.3452, allocations: 12.03 kB / 426.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.016e-05/0.3453, allocations: 50.72 kB / 426.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/0.3453, allocations: 24.78 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.3456, allocations: 154.3 kB / 426.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.3456, allocations: 12.38 kB / 426.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.3456, allocations: 16.31 kB / 426.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005169/0.3461, allocations: 270 kB / 426.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.3462, allocations: 0 / 426.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.3462, allocations: 4 kB / 426.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3462, allocations: 4 kB / 426.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002612/0.3464, allocations: 87.86 kB / 426.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006646/0.3471, allocations: 0.5388 MB / 427.5 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003785/0.3475, allocations: 139.6 kB / 427.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.3477, allocations: 78.75 kB / 427.7 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.3477, allocations: 0 / 427.7 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.3477, allocations: 42.55 kB / 427.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.072e-06/0.3477, allocations: 0 / 427.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005591/0.3483, allocations: 189.3 kB / 427.9 MB, free: 9.109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.3484, allocations: 114.8 kB / 428 MB, free: 8.973 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.3485, allocations: 158.2 kB / 428.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.3486, allocations: 29.7 kB / 428.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.655e-05/0.3486, allocations: 108.5 kB / 428.3 MB, free: 8.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.309e-05/0.3487, allocations: 27.78 kB / 428.3 MB, free: 8.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.245e-05/0.3487, allocations: 45.78 kB / 428.4 MB, free: 8.586 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3489, allocations: 322.8 kB / 428.7 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.349, allocations: 31.98 kB / 428.7 MB, free: 8.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.3492, allocations: 145.6 kB / 428.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/0.3495, allocations: 181.5 kB / 429 MB, free: 7.812 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.3495, allocations: 3.938 kB / 429.1 MB, free: 7.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003787/0.3499, allocations: 197.2 kB / 429.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.3499, allocations: 8 kB / 429.3 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3499, allocations: 4.234 kB / 429.3 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.3499, allocations: 4 kB / 429.3 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.3501, allocations: 47.91 kB / 429.3 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.3501, allocations: 4.469 kB / 429.3 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.3502, allocations: 23.89 kB / 429.3 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.3502, allocations: 15.98 kB / 429.4 MB, free: 7.504 MB / 334.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.0001174/0.3503, allocations: 137.7 kB / 429.5 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.3505, allocations: 89.91 kB / 429.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.007e-05/0.3506, allocations: 24.8 kB / 429.6 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3506, allocations: 3.938 kB / 429.6 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3506, allocations: 0 / 429.6 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3506, allocations: 4 kB / 429.6 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002813/0.3509, allocations: 192.5 kB / 429.8 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3509, allocations: 0 / 429.8 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.351, allocations: 39.97 kB / 429.8 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.351, allocations: 0 / 429.8 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.3511, allocations: 7.938 kB / 429.8 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.3511, allocations: 4 kB / 429.8 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3511, allocations: 0 / 429.8 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005598/0.3516, allocations: 387.4 kB / 430.2 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.583e-05/0.3517, allocations: 27.92 kB / 430.3 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.3517, allocations: 4 kB / 430.3 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00014/0.3518, allocations: 11.92 kB / 430.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.521e-05/0.3519, allocations: 4 kB / 430.3 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.3519, allocations: 15.92 kB / 430.3 MB, free: 6.492 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.817e-05/0.352, allocations: 116.2 kB / 430.4 MB, free: 6.379 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.352, allocations: 0 / 430.4 MB, free: 6.379 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003419/0.3523, allocations: 31.94 kB / 430.4 MB, free: 6.348 MB / 334.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.0008544/0.3532, allocations: 0.916 MB / 431.3 MB, free: 5.402 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003214/0.3535, allocations: 120.6 kB / 431.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3535, allocations: 64 / 431.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.765e-05/0.3536, allocations: 31.97 kB / 431.5 MB, free: 5.254 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004914/0.3541, allocations: 51.95 kB / 431.5 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.3567, allocations: 2.117 MB / 433.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.357, allocations: 0.7278 MB / 434.4 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.349e-05/0.3571, allocations: 5.438 kB / 434.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.096e-05/0.3571, allocations: 39.42 kB / 434.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3571, allocations: 0 / 434.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03242/0.3896, allocations: 3.168 MB / 437.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.05, allocations: 4.688 kB / 437.6 MB, free: 15.1 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.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.784647414002393]