Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001754/0.001754, allocations: 113.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.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.001516/0.001516, allocations: 214.4 kB / 23.74 MB, free: 4.656 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.515/1.515, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002588/0.002588, allocations: 47.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3159, allocations: 53.36 MB / 431.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003726/0.3196, allocations: 2.047 MB / 433.2 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.3207, allocations: 0.5453 MB / 433.7 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.3208, allocations: 4 kB / 433.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.321, allocations: 15.8 kB / 433.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.471e-05/0.3211, allocations: 31.72 kB / 433.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003323/0.3214, allocations: 55.88 kB / 433.8 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002097/0.3216, allocations: 119.6 kB / 433.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.3218, allocations: 53.53 kB / 434 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.3219, allocations: 51.8 kB / 434 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.3221, allocations: 47.77 kB / 434.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.111e-05/0.3221, allocations: 12 kB / 434.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.448e-05/0.3221, allocations: 8 kB / 434.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.175e-05/0.3222, allocations: 23.92 kB / 434.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.627e-05/0.3222, allocations: 63.66 kB / 434.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002651/0.3225, allocations: 127.8 kB / 434.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3225, allocations: 0 / 434.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3225, allocations: 0 / 434.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.3225, allocations: 0 / 434.3 MB, free: 3.625 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007625/0.3233, allocations: 349.8 kB / 434.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.908e-05/0.3234, allocations: 8.031 kB / 434.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.838e-05/0.3234, allocations: 46.73 kB / 434.7 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.646e-05/0.3235, allocations: 16.84 kB / 434.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003533/0.3238, allocations: 154.3 kB / 434.9 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.3239, allocations: 8.375 kB / 434.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.3239, allocations: 20.33 kB / 434.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006315/0.3245, allocations: 243.4 kB / 435.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.3246, allocations: 7.984 kB / 435.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.3246, allocations: 4 kB / 435.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.3246, allocations: 4 kB / 435.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00027/0.3249, allocations: 83.88 kB / 435.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000823/0.3257, allocations: 0.5349 MB / 435.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002977/0.326, allocations: 135.9 kB / 435.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.3262, allocations: 74.64 kB / 436 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.3262, allocations: 0 / 436 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.3262, allocations: 38.5 kB / 436 MB, free: 1.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.3262, allocations: 0 / 436 MB, free: 1.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.000586/0.3268, allocations: 181.7 kB / 436.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.3269, allocations: 118.8 kB / 436.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.3271, allocations: 128.8 kB / 436.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.3271, allocations: 29.7 kB / 436.5 MB, free: 1.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.404e-05/0.3272, allocations: 119.8 kB / 436.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.3272, allocations: 23.8 kB / 436.6 MB, free: 1.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.082e-05/0.3273, allocations: 37.83 kB / 436.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3274, allocations: 326.8 kB / 437 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.3275, allocations: 35.97 kB / 437 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.3277, allocations: 131.9 kB / 437.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.328, allocations: 180.6 kB / 437.3 MB, free: 296 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.328, allocations: 0 / 437.3 MB, free: 296 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003947/0.3284, allocations: 189.4 kB / 437.5 MB, free: 100 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.3284, allocations: 8 kB / 437.5 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.3285, allocations: 11.94 kB / 437.5 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.3285, allocations: 4.234 kB / 437.5 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.3287, allocations: 43.91 kB / 437.6 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.3287, allocations: 4 kB / 437.6 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.3288, allocations: 19.89 kB / 437.6 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.831e-05/0.3288, allocations: 8.312 kB / 437.6 MB, free: 16 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.000111/0.3289, allocations: 137.6 kB / 437.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.3291, allocations: 89.56 kB / 437.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6e-05/0.3291, allocations: 16.66 kB / 437.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.3291, allocations: 4 kB / 437.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3291, allocations: 3.938 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.3291, allocations: 4 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003088/0.3294, allocations: 172.6 kB / 438 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3294, allocations: 0 / 438 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.3296, allocations: 39.97 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3296, allocations: 4 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.3296, allocations: 3.938 kB / 438 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.3297, allocations: 7.938 kB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3297, allocations: 0 / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005925/0.3302, allocations: 371.1 kB / 438.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.355e-05/0.3303, allocations: 11.89 kB / 438.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.3303, allocations: 12.02 kB / 438.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.3304, allocations: 7.938 kB / 438.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.166e-05/0.3305, allocations: 11.98 kB / 438.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.3305, allocations: 4 kB / 438.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.12e-05/0.3306, allocations: 95.27 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3306, allocations: 3.938 kB / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003255/0.3309, allocations: 32.02 kB / 438.6 MB, free: 14.91 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 (14): * Single equations (assignments): 14 * 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.0008609/0.3318, allocations: 0.9146 MB / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000347/0.3321, allocations: 107.9 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3321, allocations: 0 / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.3322, allocations: 32.78 kB / 439.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005084/0.3327, allocations: 53.62 kB / 439.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/0.3353, allocations: 2.033 MB / 441.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.3356, allocations: 0.7084 MB / 442.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.709e-05/0.3357, allocations: 12.64 kB / 442.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.559e-05/0.3358, allocations: 39.42 kB / 442.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3358, allocations: 0 / 442.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03144/0.3672, allocations: 2.951 MB / 445.4 MB, free: 8.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.66, allocations: 0 / 445.4 MB, free: 8.012 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_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_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_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.51781691999713]