Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 114.6 kB / 17.07 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 193.4 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001502, allocations: 47.92 kB / 350.8 MB, free: 3.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3123, allocations: 49.45 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003875/0.3163, allocations: 2.142 MB / 402.4 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.3175, allocations: 0.647 MB / 403 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.3177, allocations: 8 kB / 403 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002701/0.318, allocations: 47.64 kB / 403.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001501/0.3182, allocations: 51.56 kB / 403.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003423/0.3185, allocations: 122.5 kB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003892/0.3189, allocations: 347.2 kB / 403.6 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.3191, allocations: 68.34 kB / 403.6 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002169/0.3193, allocations: 135.6 kB / 403.8 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.3196, allocations: 155.4 kB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.178e-05/0.3196, allocations: 28 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.716e-05/0.3197, allocations: 36 kB / 404 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.3198, allocations: 87.78 kB / 404.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.32, allocations: 123.4 kB / 404.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003888/0.3204, allocations: 281.8 kB / 404.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3204, allocations: 4 kB / 404.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3204, allocations: 4 kB / 404.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.3204, allocations: 0 / 404.5 MB, free: 4.566 MB / 318.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.001161/0.3216, allocations: 0.5765 MB / 405 MB, free: 3.941 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.3216, allocations: 8.031 kB / 405.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.722e-05/0.3217, allocations: 62.73 kB / 405.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.57e-05/0.3218, allocations: 36.75 kB / 405.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003906/0.3222, allocations: 258 kB / 405.4 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002158/0.3224, allocations: 137.9 kB / 405.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.596e-05/0.3224, allocations: 24 kB / 405.6 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008717/0.3233, allocations: 363.6 kB / 405.9 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.3233, allocations: 4 kB / 405.9 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/0.3234, allocations: 12 kB / 405.9 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.3234, allocations: 4 kB / 405.9 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.3248, allocations: 497.8 kB / 406.4 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.3266, allocations: 1.003 MB / 407.4 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/0.3279, allocations: 343.1 kB / 407.8 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005276/0.3284, allocations: 173.9 kB / 407.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/0.3284, allocations: 8.219 kB / 407.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.3285, allocations: 34.8 kB / 408 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 2.234e-06/0.3285, allocations: 0 / 408 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.0277/0.3562, allocations: 5.799 MB / 413.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.3563, allocations: 67.84 kB / 413.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002671/0.3566, allocations: 210.5 kB / 414 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.54e-05/0.3566, allocations: 33.7 kB / 414.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.3567, allocations: 153 kB / 414.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/0.3569, allocations: 190.3 kB / 414.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000213/0.3571, allocations: 86.25 kB / 414.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.3573, allocations: 334.8 kB / 414.8 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001342/0.3586, allocations: 472.8 kB / 415.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.3601, allocations: 0.5177 MB / 415.8 MB, free: 8.859 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002441/0.3625, allocations: 0.8032 MB / 416.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.3625, allocations: 0 / 416.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002941/0.3655, allocations: 0.9867 MB / 417.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.099e-05/0.3655, allocations: 14.44 kB / 417.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.3655, allocations: 3.938 kB / 417.6 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.3656, allocations: 4 kB / 417.6 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000993/0.3666, allocations: 171.8 kB / 417.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.3666, allocations: 7.984 kB / 417.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007153/0.3673, allocations: 79.89 kB / 417.9 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.702e-05/0.3674, allocations: 16 kB / 417.9 MB, free: 6.758 MB / 334.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.000275/0.3677, allocations: 165.8 kB / 418 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.121e-05/0.3678, allocations: 35.73 kB / 418.1 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001291/0.3679, allocations: 47.31 kB / 418.1 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3679, allocations: 4 kB / 418.1 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.3679, allocations: 3.984 kB / 418.1 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.3679, allocations: 7.938 kB / 418.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004366/0.3723, allocations: 1.871 MB / 420 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/0.3723, allocations: 8.156 kB / 420 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006577/0.373, allocations: 143.8 kB / 420.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-05/0.373, allocations: 15.94 kB / 420.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.434e-05/0.3731, allocations: 20 kB / 420.2 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.51e-05/0.3731, allocations: 19.92 kB / 420.2 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.197e-05/0.3731, allocations: 11.94 kB / 420.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002925/0.3761, allocations: 1.221 MB / 421.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002055/0.3763, allocations: 148.9 kB / 421.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.334e-05/0.3764, allocations: 23.98 kB / 421.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005401/0.3769, allocations: 71.92 kB / 421.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002204/0.3771, allocations: 87.67 kB / 421.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.145e-05/0.3772, allocations: 27.98 kB / 421.8 MB, free: 2.516 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001868/0.3774, allocations: 140.3 kB / 421.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3774, allocations: 0 / 421.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000498/0.3779, allocations: 96 kB / 422 MB, free: 2.285 MB / 334.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.003522/0.3814, allocations: 1.785 MB / 423.8 MB, free: 376 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002512/0.3839, allocations: 0.8687 MB / 424.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.384, allocations: 4 kB / 424.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009827/0.385, allocations: 329.7 kB / 425 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007366/0.3857, allocations: 54 kB / 425.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.3968, allocations: 5.255 MB / 430.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.3973, allocations: 0.7762 MB / 431.1 MB, free: 8.742 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004127/0.3977, allocations: 87.17 kB / 431.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002913/0.398, allocations: 95.36 kB / 431.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.398, allocations: 0 / 431.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03598/0.434, allocations: 8.336 MB / 439.6 MB, free: 376 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.69/9.124, allocations: 14.22 kB / 439.6 MB, free: 364 kB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches