Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001009/0.001009, allocations: 88.05 kB / 20.67 MB, free: 3.871 MB / 18.57 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.000994/0.000994, allocations: 145.1 kB / 23.93 MB, free: 0.6172 MB / 18.57 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 0.9042/0.9042, allocations: 173.4 MB / 200.5 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.218e-05/2.393e-05, allocations: 2.281 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002595/0.002619, allocations: 1.964 MB / 320.4 MB, free: 4.398 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000764/0.003383, allocations: 482.6 kB / 320.8 MB, free: 3.922 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.006e-05/0.003473, allocations: 4 kB / 320.9 MB, free: 3.918 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.324e-05/0.003567, allocations: 23.73 kB / 320.9 MB, free: 3.895 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.807e-05/0.003625, allocations: 27.72 kB / 320.9 MB, free: 3.867 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.00388, allocations: 59.81 kB / 321 MB, free: 3.809 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.004017, allocations: 123.5 kB / 321.1 MB, free: 3.688 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.004138, allocations: 40.97 kB / 321.1 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.26e-05/0.00422, allocations: 71.81 kB / 321.2 MB, free: 3.574 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.809e-05/0.004288, allocations: 47.81 kB / 321.2 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.55e-05/0.004314, allocations: 8 kB / 321.2 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.3e-05/0.004327, allocations: 12 kB / 321.3 MB, free: 3.508 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.611e-05/0.004353, allocations: 31.91 kB / 321.3 MB, free: 3.477 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.88e-05/0.004392, allocations: 35.91 kB / 321.3 MB, free: 3.441 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.004542, allocations: 139.4 kB / 321.5 MB, free: 3.305 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.004543, allocations: 0 / 321.5 MB, free: 3.305 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.004544, allocations: 0 / 321.5 MB, free: 3.305 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.004548, allocations: 0 / 321.5 MB, free: 3.305 MB / 282.7 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.0004619/0.00501, allocations: 349.8 kB / 321.8 MB, free: 2.934 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.005045, allocations: 8.031 kB / 321.8 MB, free: 2.926 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.355e-05/0.005078, allocations: 42.73 kB / 321.9 MB, free: 2.875 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.005106, allocations: 24.84 kB / 321.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.005283, allocations: 141.6 kB / 322 MB, free: 2.688 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.005297, allocations: 16.36 kB / 322 MB, free: 2.672 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.00532, allocations: 12.38 kB / 322 MB, free: 2.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.005686, allocations: 239.1 kB / 322.3 MB, free: 2.402 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.005703, allocations: 4.188 kB / 322.3 MB, free: 2.398 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.005719, allocations: 8.125 kB / 322.3 MB, free: 2.391 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.005727, allocations: 4 kB / 322.3 MB, free: 2.387 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.00591, allocations: 87.88 kB / 322.4 MB, free: 2.301 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005498/0.00646, allocations: 0.504 MB / 322.9 MB, free: 1.734 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001885/0.006649, allocations: 139.9 kB / 323 MB, free: 1.57 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.647e-05/0.006745, allocations: 70.62 kB / 323.1 MB, free: 1.492 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.00677, allocations: 8 kB / 323.1 MB, free: 1.484 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.006792, allocations: 34.5 kB / 323.1 MB, free: 1.441 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.006793, allocations: 0 / 323.1 MB, free: 1.441 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003268/0.00712, allocations: 181.7 kB / 323.3 MB, free: 1.258 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.097e-05/0.007181, allocations: 114.8 kB / 323.4 MB, free: 1.121 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.493e-05/0.007256, allocations: 138.1 kB / 323.6 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.007268, allocations: 29.83 kB / 323.6 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.166e-05/0.007319, allocations: 111.9 kB / 323.7 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.574e-05/0.007405, allocations: 23.84 kB / 323.7 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.00744, allocations: 25.72 kB / 323.7 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.026e-05/0.00752, allocations: 322.8 kB / 324.1 MB, free: 456 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.372e-05/0.007574, allocations: 27.97 kB / 324.1 MB, free: 428 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.227e-05/0.007646, allocations: 74.84 kB / 324.2 MB, free: 328 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001439/0.00779, allocations: 118.7 kB / 324.3 MB, free: 184 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.007792, allocations: 0 / 324.3 MB, free: 184 kB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001731/0.007965, allocations: 137.4 kB / 324.4 MB, free: 40 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.00798, allocations: 8 kB / 324.4 MB, free: 32 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.007985, allocations: 0 / 324.4 MB, free: 32 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.007998, allocations: 4 kB / 324.4 MB, free: 28 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.247e-05/0.00809, allocations: 27.98 kB / 324.4 MB, free: 0 / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.196e-05/0.008112, allocations: 8.047 kB / 324.5 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.543e-05/0.008158, allocations: 19.81 kB / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.008165, allocations: 8 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 6.164e-05/0.008227, allocations: 122.1 kB / 324.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.505e-05/0.008312, allocations: 85.58 kB / 324.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.804e-05/0.00834, allocations: 17.02 kB / 324.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.008342, allocations: 0 / 324.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.008349, allocations: 11.91 kB / 324.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.008353, allocations: 4 kB / 324.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001639/0.008517, allocations: 160.6 kB / 324.9 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.008519, allocations: 4 kB / 324.9 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.855e-05/0.008608, allocations: 35.97 kB / 324.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.00861, allocations: 3.828 kB / 324.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.008619, allocations: 8 kB / 324.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.008623, allocations: 7.938 kB / 324.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.008625, allocations: 3.938 kB / 324.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003076/0.008933, allocations: 367.5 kB / 325.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.185e-05/0.008945, allocations: 7.984 kB / 325.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.008959, allocations: 4 kB / 325.3 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.055e-05/0.00903, allocations: 12.08 kB / 325.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.01e-05/0.00906, allocations: 11.94 kB / 325.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.009065, allocations: 4 kB / 325.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001871/0.009252, allocations: 99.27 kB / 325.4 MB, free: 14.94 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009252, allocations: 3.938 kB / 325.4 MB, free: 14.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001941/0.009446, allocations: 31.89 kB / 325.5 MB, free: 14.9 MB / 298.7 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.0004414/0.009887, allocations: 0.8948 MB / 326.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001707/0.01006, allocations: 95.92 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01006, allocations: 0 / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.925e-05/0.01011, allocations: 31.91 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.01045, allocations: 59.45 kB / 326.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.01174, allocations: 1.8 MB / 328.3 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.298e-05/0.0118, allocations: 93.31 kB / 328.4 MB, free: 11.76 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.788e-05/0.01183, allocations: 16.34 kB / 328.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.044e-05/0.01188, allocations: 36.48 kB / 328.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01188, allocations: 4 kB / 328.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01572/0.0276, allocations: 3.375 MB / 331.9 MB, free: 8.516 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.691/6.719, allocations: 8.062 kB / 331.9 MB, free: 8.508 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.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: 8.567711539566517]