Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008049/0.0008049, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000859/0.000859, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8944/0.8944, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.078e-05/1.183e-05, allocations: 7.203 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00233/0.002341, allocations: 1.99 MB / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006485/0.00299, allocations: 0.5414 MB / 327 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.111e-05/0.003071, allocations: 4 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.188e-05/0.003163, allocations: 15.8 kB / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.003298, allocations: 31.7 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001766/0.003474, allocations: 59.81 kB / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.003603, allocations: 127.5 kB / 327.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.003718, allocations: 37.58 kB / 327.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.269e-05/0.003801, allocations: 83.73 kB / 327.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.912e-05/0.00386, allocations: 39.88 kB / 327.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.003886, allocations: 12 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.381e-05/0.0039, allocations: 12 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.435e-05/0.003924, allocations: 23.91 kB / 327.5 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.041e-05/0.003965, allocations: 43.84 kB / 327.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.004104, allocations: 127.6 kB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.004106, allocations: 4 kB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.004107, allocations: 0 / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.004111, allocations: 0 / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004189/0.00453, allocations: 349.8 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.004564, allocations: 15.98 kB / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.548e-05/0.0046, allocations: 50.67 kB / 328 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.477e-05/0.004625, allocations: 12.84 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001724/0.004797, allocations: 145.5 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.749e-06/0.004807, allocations: 12.38 kB / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.446e-05/0.004831, allocations: 12.38 kB / 328.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003311/0.005162, allocations: 247.1 kB / 328.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.005173, allocations: 4.125 kB / 328.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.005185, allocations: 8.125 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.005191, allocations: 4 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001514/0.005342, allocations: 95.86 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006384/0.005981, allocations: 0.5078 MB / 329.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002226/0.006203, allocations: 143.8 kB / 329.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.502e-05/0.006288, allocations: 66.64 kB / 329.3 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.006306, allocations: 4 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.61e-05/0.006322, allocations: 42.44 kB / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/0.006323, allocations: 4 kB / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003021/0.006626, allocations: 185.4 kB / 329.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.006673, allocations: 114.9 kB / 329.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.012e-05/0.006743, allocations: 132.9 kB / 329.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/0.006754, allocations: 29.7 kB / 329.8 MB, free: 10.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.362e-05/0.006797, allocations: 111.9 kB / 329.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.006813, allocations: 23.8 kB / 329.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.011e-05/0.006844, allocations: 29.83 kB / 329.9 MB, free: 10.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.852e-05/0.006912, allocations: 318.8 kB / 330.3 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.053e-05/0.006963, allocations: 31.97 kB / 330.3 MB, free: 9.836 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.93e-05/0.007032, allocations: 74.84 kB / 330.4 MB, free: 9.738 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.007158, allocations: 122.6 kB / 330.5 MB, free: 9.594 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.007165, allocations: 0 / 330.5 MB, free: 9.594 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001688/0.007334, allocations: 137.4 kB / 330.6 MB, free: 9.453 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.007349, allocations: 8.219 kB / 330.6 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.007354, allocations: 4 kB / 330.6 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.007366, allocations: 4 kB / 330.6 MB, free: 9.438 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.184e-05/0.007428, allocations: 23.98 kB / 330.7 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.007437, allocations: 15.86 kB / 330.7 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.012e-05/0.007477, allocations: 11.95 kB / 330.7 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.007484, allocations: 8 kB / 330.7 MB, free: 9.379 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 7.2e-05/0.007556, allocations: 117.8 kB / 330.8 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.961e-05/0.007646, allocations: 93.56 kB / 330.9 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.689e-05/0.007703, allocations: 20.78 kB / 330.9 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.007705, allocations: 480 / 330.9 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.00771, allocations: 3.938 kB / 330.9 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.007714, allocations: 4 kB / 330.9 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.00788, allocations: 168.6 kB / 331.1 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.007881, allocations: 0 / 331.1 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.75e-05/0.007978, allocations: 47.84 kB / 331.1 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.00798, allocations: 0 / 331.1 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.007991, allocations: 4 kB / 331.1 MB, free: 8.875 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.007992, allocations: 0 / 331.1 MB, free: 8.875 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.007994, allocations: 3.938 kB / 331.1 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003215/0.008315, allocations: 383.5 kB / 331.5 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.356e-05/0.008329, allocations: 15.89 kB / 331.5 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.008343, allocations: 0 / 331.5 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.804e-05/0.008411, allocations: 11.98 kB / 331.5 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.562e-05/0.008447, allocations: 8.172 kB / 331.6 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.008452, allocations: 4 kB / 331.6 MB, free: 8.438 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.766e-05/0.00849, allocations: 102.1 kB / 331.7 MB, free: 8.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00849, allocations: 4.062 kB / 331.7 MB, free: 8.336 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001855/0.008675, allocations: 23.94 kB / 331.7 MB, free: 8.312 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 (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.0004578/0.009133, allocations: 0.9154 MB / 332.6 MB, free: 7.363 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001627/0.009296, allocations: 100.2 kB / 332.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-06/0.009297, allocations: 0 / 332.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.756e-05/0.009344, allocations: 27.97 kB / 332.7 MB, free: 7.238 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000331/0.009675, allocations: 63.8 kB / 332.8 MB, free: 7.176 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.01097, allocations: 1.807 MB / 334.6 MB, free: 5.234 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.57e-05/0.01104, allocations: 101.3 kB / 334.7 MB, free: 5.117 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.095e-05/0.01108, allocations: 4.984 kB / 334.7 MB, free: 5.113 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.58e-05/0.01115, allocations: 40.48 kB / 334.7 MB, free: 5.074 MB / 298.7 MB Notification: Performance of SimCode: time 1.112e-06/0.01115, allocations: 3.938 kB / 334.7 MB, free: 5.07 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01697/0.02812, allocations: 3.423 MB / 338.2 MB, free: 1.785 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.664/6.692, allocations: 0 / 338.2 MB, free: 1.785 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000593942 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_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.464052219875157]