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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001202/0.001202, allocations: 103.8 kB / 17.63 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 206.4 kB / 18.58 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 63.19 kB / 307 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1074, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004002/0.1115, allocations: 2.011 MB / 359.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.1126, allocations: 0.5609 MB / 360.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.1128, allocations: 4 kB / 360.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.1129, allocations: 15.8 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.1132, allocations: 35.72 kB / 360.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.1135, allocations: 51.88 kB / 360.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002207/0.1137, allocations: 123.6 kB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.1139, allocations: 57.36 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.114, allocations: 55.73 kB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.1142, allocations: 59.69 kB / 360.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.1142, allocations: 8 kB / 360.5 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.795e-05/0.1142, allocations: 12 kB / 360.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.33e-05/0.1143, allocations: 27.86 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.822e-05/0.1144, allocations: 59.73 kB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.1146, allocations: 131.8 kB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1146, allocations: 0 / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1146, allocations: 4 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.1146, allocations: 0 / 360.8 MB, free: 10.77 MB / 302.1 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.0007354/0.1154, allocations: 427 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.1154, allocations: 8.031 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.611e-05/0.1155, allocations: 46.73 kB / 361.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.742e-05/0.1155, allocations: 16.75 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.1158, allocations: 204.1 kB / 361.5 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.1159, allocations: 12.38 kB / 361.5 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.1159, allocations: 12.38 kB / 361.5 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005844/0.1165, allocations: 254.5 kB / 361.7 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.1165, allocations: 3.938 kB / 361.7 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.1166, allocations: 4 kB / 361.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.1166, allocations: 4 kB / 361.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002795/0.1169, allocations: 91.86 kB / 361.8 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007817/0.1176, allocations: 0.5958 MB / 362.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003928/0.1181, allocations: 159.9 kB / 362.6 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.1182, allocations: 70.64 kB / 362.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.1183, allocations: 4 kB / 362.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.723e-05/0.1183, allocations: 34.55 kB / 362.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.1183, allocations: 7.938 kB / 362.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006125/0.119, allocations: 185.4 kB / 362.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.511e-05/0.1191, allocations: 111.1 kB / 363 MB, free: 8.289 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.1192, allocations: 134.2 kB / 363.1 MB, free: 8.145 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.1192, allocations: 25.7 kB / 363.1 MB, free: 8.113 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.04e-05/0.1193, allocations: 119.9 kB / 363.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.143e-05/0.1194, allocations: 23.73 kB / 363.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.066e-05/0.1195, allocations: 37.62 kB / 363.3 MB, free: 7.926 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.1196, allocations: 322.8 kB / 363.6 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.1197, allocations: 35.97 kB / 363.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.1199, allocations: 137.1 kB / 363.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.1203, allocations: 185.5 kB / 364 MB, free: 7.156 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-06/0.1203, allocations: 11.94 kB / 364 MB, free: 7.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004162/0.1207, allocations: 197.2 kB / 364.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.1207, allocations: 6.812 kB / 364.2 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.78e-05/0.1208, allocations: 4 kB / 364.2 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.1208, allocations: 4.469 kB / 364.2 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.121, allocations: 47.92 kB / 364.3 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.651e-05/0.121, allocations: 11.92 kB / 364.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.1211, allocations: 19.84 kB / 364.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.1211, allocations: 12 kB / 364.3 MB, free: 6.844 MB / 302.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.0001469/0.1213, allocations: 137.6 kB / 364.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001637/0.1215, allocations: 85.58 kB / 364.5 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.758e-05/0.1216, allocations: 16.72 kB / 364.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1216, allocations: 4 kB / 364.5 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.1216, allocations: 4 kB / 364.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.1216, allocations: 240 / 364.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003161/0.1219, allocations: 213.4 kB / 364.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1219, allocations: 3.938 kB / 364.8 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001996/0.1221, allocations: 39.97 kB / 364.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.608e-06/0.1222, allocations: 3.984 kB / 364.8 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.1222, allocations: 4 kB / 364.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.1222, allocations: 0 / 364.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1222, allocations: 0 / 364.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005867/0.1228, allocations: 390.4 kB / 365.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.715e-05/0.1229, allocations: 88.98 kB / 365.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.1229, allocations: 8 kB / 365.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.1231, allocations: 7.984 kB / 365.3 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.928e-05/0.1231, allocations: 4.062 kB / 365.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.1231, allocations: 8 kB / 365.3 MB, free: 5.746 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.376e-05/0.1232, allocations: 95.36 kB / 365.4 MB, free: 5.652 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1232, allocations: 7.938 kB / 365.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003524/0.1236, allocations: 31.89 kB / 365.4 MB, free: 5.613 MB / 302.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.000865/0.1244, allocations: 0.9076 MB / 366.3 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003632/0.1248, allocations: 136.5 kB / 366.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1248, allocations: 0 / 366.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.1249, allocations: 31.91 kB / 366.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005101/0.1255, allocations: 51.95 kB / 366.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.1283, allocations: 2.04 MB / 368.6 MB, free: 2.234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.1287, allocations: 0.724 MB / 369.3 MB, free: 1.484 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.09e-05/0.1287, allocations: 13.06 kB / 369.3 MB, free: 1.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.573e-05/0.1288, allocations: 35.42 kB / 369.4 MB, free: 1.438 MB / 302.1 MB Notification: Performance of SimCode: time 8.51e-07/0.1288, allocations: 0 / 369.4 MB, free: 1.438 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1884/0.3173, allocations: 2.725 MB / 372.1 MB, free: 20.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.032/8.349, allocations: 12.64 kB / 372.1 MB, free: 20.14 MB / 302.1 MB (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.0012 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "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! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w