Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001575/0.001575, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001729/0.001729, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002325/0.002325, allocations: 58.47 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09926/0.1016, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00422/0.1059, allocations: 2.149 MB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.1074, allocations: 0.6861 MB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001955/0.1076, allocations: 0 / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003006/0.108, allocations: 47.64 kB / 360.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.1082, allocations: 51.62 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004467/0.1087, allocations: 119.8 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004611/0.1091, allocations: 339.2 kB / 361 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.1093, allocations: 76.28 kB / 361 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003443/0.1097, allocations: 151.5 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.11, allocations: 151.4 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.462e-05/0.1101, allocations: 32 kB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.86e-05/0.1101, allocations: 28 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.1103, allocations: 83.78 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.1104, allocations: 123.4 kB / 361.6 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003466/0.1108, allocations: 283.3 kB / 361.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1108, allocations: 0 / 361.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1108, allocations: 0 / 361.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.678e-05/0.1108, allocations: 0 / 361.9 MB, free: 9.691 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001343/0.1122, allocations: 0.5767 MB / 362.4 MB, free: 9.066 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.1122, allocations: 16.03 kB / 362.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.513e-05/0.1123, allocations: 62.72 kB / 362.5 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.509e-05/0.1124, allocations: 32.66 kB / 362.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.1128, allocations: 252 kB / 362.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.113, allocations: 134 kB / 362.9 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.527e-05/0.1131, allocations: 24 kB / 362.9 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008893/0.114, allocations: 375.5 kB / 363.3 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.114, allocations: 4 kB / 363.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.591e-05/0.114, allocations: 8 kB / 363.3 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.114, allocations: 8 kB / 363.3 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001442/0.1155, allocations: 493.9 kB / 363.8 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.1174, allocations: 1.011 MB / 364.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.1187, allocations: 341.5 kB / 365.2 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005138/0.1192, allocations: 177.2 kB / 365.3 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.1192, allocations: 8.156 kB / 365.3 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.1193, allocations: 38.8 kB / 365.4 MB, free: 5.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.683e-06/0.1193, allocations: 0 / 365.4 MB, free: 5.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02795/0.1473, allocations: 5.792 MB / 371.2 MB, free: 76 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.52e-05/0.1474, allocations: 55.84 kB / 371.2 MB, free: 8 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1671/0.3145, allocations: 194.5 kB / 371.4 MB, free: 21.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001068/0.3147, allocations: 34.64 kB / 371.5 MB, free: 21.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.392e-05/0.3148, allocations: 147.5 kB / 371.6 MB, free: 21.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.3149, allocations: 177.7 kB / 371.8 MB, free: 21.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002484/0.3152, allocations: 96.88 kB / 371.9 MB, free: 21.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.562e-05/0.3153, allocations: 336.4 kB / 372.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.3166, allocations: 466.3 kB / 372.6 MB, free: 20.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001323/0.3179, allocations: 0.5167 MB / 373.2 MB, free: 20.67 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002382/0.3203, allocations: 0.8117 MB / 374 MB, free: 20.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.3203, allocations: 1.219 kB / 374 MB, free: 20.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002887/0.3232, allocations: 0.9793 MB / 375 MB, free: 20.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.3233, allocations: 5.406 kB / 375 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.3233, allocations: 2.234 kB / 375 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.079e-05/0.3233, allocations: 11.16 kB / 375 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.3243, allocations: 172.7 kB / 375.1 MB, free: 20.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.3244, allocations: 3.562 kB / 375.1 MB, free: 20.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007191/0.3251, allocations: 86.83 kB / 375.2 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.185e-05/0.3251, allocations: 15.06 kB / 375.2 MB, free: 20 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002202/0.3254, allocations: 163.5 kB / 375.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.255e-05/0.3255, allocations: 29.23 kB / 375.4 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.3256, allocations: 53.23 kB / 375.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.3256, allocations: 6.219 kB / 375.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.3256, allocations: 0 / 375.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.3256, allocations: 6.609 kB / 375.5 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004409/0.33, allocations: 1.872 MB / 377.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.707e-05/0.3301, allocations: 8.719 kB / 377.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007212/0.3308, allocations: 150.2 kB / 377.5 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-05/0.3309, allocations: 11.06 kB / 377.5 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.517e-05/0.3309, allocations: 23.86 kB / 377.6 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.772e-05/0.331, allocations: 17.12 kB / 377.6 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.631e-05/0.331, allocations: 12.41 kB / 377.6 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003165/0.3341, allocations: 1.23 MB / 378.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002119/0.3344, allocations: 143.6 kB / 379 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.4e-05/0.3345, allocations: 26.38 kB / 379 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005377/0.335, allocations: 67.67 kB / 379.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002254/0.3352, allocations: 87.95 kB / 379.1 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.891e-05/0.3353, allocations: 26.28 kB / 379.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002037/0.3355, allocations: 149.9 kB / 379.3 MB, free: 17.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.443e-06/0.3355, allocations: 0 / 379.3 MB, free: 17.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005479/0.3361, allocations: 96.19 kB / 379.4 MB, free: 17.75 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.003592/0.3397, allocations: 1.779 MB / 381.2 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002861/0.3426, allocations: 0.8763 MB / 382.1 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.635e-05/0.3426, allocations: 1.375 kB / 382.1 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.3438, allocations: 330.2 kB / 382.4 MB, free: 16.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008225/0.3446, allocations: 63.09 kB / 382.4 MB, free: 16.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/0.3576, allocations: 5.221 MB / 387.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006179/0.3583, allocations: 0.7803 MB / 388.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007276/0.359, allocations: 81.95 kB / 388.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003489/0.3594, allocations: 97.77 kB / 388.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.336e-06/0.3594, allocations: 1.469 kB / 388.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03217/0.3916, allocations: 8.295 MB / 396.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/8.6, allocations: 8.047 kB / 396.9 MB, free: 7.57 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches