Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.0008538/0.0008538, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.001021/0.001021, allocations: 156.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.8995/0.8995, allocations: 177 MB / 204.1 MB, free: 5.742 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.129e-05/1.262e-05, allocations: 3.125 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002249/0.002262, allocations: 2.023 MB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007853/0.003047, allocations: 0.5725 MB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.003155, allocations: 4 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.003274, allocations: 19.73 kB / 327.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.003446, allocations: 35.72 kB / 327.1 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/0.003691, allocations: 67.73 kB / 327.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001701/0.003861, allocations: 139.4 kB / 327.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.003996, allocations: 34.11 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.807e-05/0.004094, allocations: 75.86 kB / 327.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.449e-05/0.004168, allocations: 43.77 kB / 327.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.815e-05/0.004196, allocations: 12 kB / 327.5 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.554e-05/0.004212, allocations: 12 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.743e-05/0.004269, allocations: 31.91 kB / 327.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.856e-05/0.004318, allocations: 47.83 kB / 327.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001782/0.004496, allocations: 139.5 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.004498, allocations: 0 / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.004499, allocations: 0 / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.004503, allocations: 0 / 327.7 MB, free: 12.64 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004372/0.00494, allocations: 377.6 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.004975, allocations: 19.98 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.429e-05/0.005009, allocations: 46.73 kB / 328.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.89e-05/0.005038, allocations: 20.8 kB / 328.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001899/0.005228, allocations: 169.3 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.005238, allocations: 8.375 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.005265, allocations: 16.31 kB / 328.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003596/0.005624, allocations: 251.1 kB / 328.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.005638, allocations: 192 / 328.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.005652, allocations: 12.12 kB / 328.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.005659, allocations: 7.984 kB / 328.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001519/0.005811, allocations: 83.88 kB / 328.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005084/0.006319, allocations: 0.5234 MB / 329.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.006578, allocations: 143.7 kB / 329.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.437e-05/0.006672, allocations: 66.83 kB / 329.5 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.006696, allocations: 11.92 kB / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.006716, allocations: 38.5 kB / 329.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.006717, allocations: 0 / 329.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003309/0.007048, allocations: 181.5 kB / 329.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.007109, allocations: 122.8 kB / 329.8 MB, free: 10.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.811e-05/0.007207, allocations: 154.3 kB / 330 MB, free: 10.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.00722, allocations: 25.7 kB / 330 MB, free: 10.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.416e-05/0.007274, allocations: 116.6 kB / 330.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.007293, allocations: 27.78 kB / 330.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.398e-05/0.007327, allocations: 25.72 kB / 330.1 MB, free: 9.984 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.143e-05/0.007399, allocations: 318.8 kB / 330.5 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.845e-05/0.007457, allocations: 27.97 kB / 330.5 MB, free: 9.637 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.465e-05/0.007532, allocations: 90.78 kB / 330.6 MB, free: 9.523 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001264/0.007658, allocations: 114.7 kB / 330.7 MB, free: 9.387 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.00766, allocations: 0 / 330.7 MB, free: 9.387 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000162/0.007822, allocations: 137.4 kB / 330.8 MB, free: 9.246 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.007835, allocations: 4 kB / 330.8 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.00784, allocations: 4 kB / 330.8 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.007851, allocations: 0 / 330.8 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.67e-05/0.007918, allocations: 35.92 kB / 330.9 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.007925, allocations: 7.938 kB / 330.9 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.359e-05/0.007969, allocations: 16.16 kB / 330.9 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.007981, allocations: 4 kB / 330.9 MB, free: 9.176 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.499e-05/0.008056, allocations: 133.8 kB / 331 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.006e-05/0.008146, allocations: 85.53 kB / 331.1 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.472e-05/0.008201, allocations: 20.78 kB / 331.1 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.008205, allocations: 4.469 kB / 331.1 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.008211, allocations: 3.938 kB / 331.1 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.008216, allocations: 7.984 kB / 331.1 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.008388, allocations: 176.6 kB / 331.3 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.008389, allocations: 240 / 331.3 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.412e-05/0.008483, allocations: 43.86 kB / 331.4 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.008486, allocations: 3.984 kB / 331.4 MB, free: 8.652 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.008497, allocations: 8 kB / 331.4 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.008498, allocations: 0 / 331.4 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.0085, allocations: 7.922 kB / 331.4 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003199/0.00882, allocations: 383.4 kB / 331.7 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.59e-05/0.008866, allocations: 23.95 kB / 331.8 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.008882, allocations: 8.062 kB / 331.8 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.827e-05/0.00896, allocations: 8 kB / 331.8 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/0.008996, allocations: 11.92 kB / 331.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.68e-06/0.009001, allocations: 4 kB / 331.8 MB, free: 8.188 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.037e-05/0.009062, allocations: 124.1 kB / 331.9 MB, free: 8.066 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009062, allocations: 0 / 331.9 MB, free: 8.066 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000199/0.009261, allocations: 27.89 kB / 332 MB, free: 8.039 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.0004847/0.009745, allocations: 0.9181 MB / 332.9 MB, free: 7.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001817/0.009927, allocations: 95.8 kB / 333 MB, free: 6.996 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.009928, allocations: 0 / 333 MB, free: 6.996 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.816e-05/0.009976, allocations: 27.97 kB / 333 MB, free: 6.969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.01031, allocations: 77.27 kB / 333.1 MB, free: 6.895 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.0117, allocations: 1.853 MB / 334.9 MB, free: 4.906 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.646e-05/0.01177, allocations: 118.1 kB / 335 MB, free: 4.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.012e-05/0.0118, allocations: 4.656 kB / 335 MB, free: 4.766 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.194e-05/0.01186, allocations: 40.48 kB / 335.1 MB, free: 4.727 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01186, allocations: 0 / 335.1 MB, free: 4.727 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0148/0.02666, allocations: 3.622 MB / 338.7 MB, free: 1.273 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.634/6.66, allocations: 7.219 kB / 338.7 MB, free: 1.27 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_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: 8.423012766055763]