Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",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.001238/0.001238, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.001396/0.001396, allocations: 191 kB / 18 MB, free: 5.102 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.519/1.519, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 39.94 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3512, allocations: 49.43 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003832/0.3551, allocations: 2.345 MB / 402.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.3567, allocations: 0.8026 MB / 403.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.3569, allocations: 7.938 kB / 403.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003102/0.3573, allocations: 51.58 kB / 403.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.3575, allocations: 59.56 kB / 403.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005377/0.3581, allocations: 185.6 kB / 403.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004037/0.3585, allocations: 379.6 kB / 404 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.3587, allocations: 107.8 kB / 404.1 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.3589, allocations: 163.5 kB / 404.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.3592, allocations: 175.3 kB / 404.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.258e-05/0.3592, allocations: 39.94 kB / 404.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.523e-05/0.3593, allocations: 32 kB / 404.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.3594, allocations: 95.72 kB / 404.6 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.3595, allocations: 151.2 kB / 404.8 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004235/0.36, allocations: 333.6 kB / 405.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.36, allocations: 4 kB / 405.1 MB, free: 3.891 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.36, allocations: 4 kB / 405.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.36, allocations: 0 / 405.1 MB, free: 3.887 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001198/0.3612, allocations: 0.6383 MB / 405.8 MB, free: 3.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3613, allocations: 8.031 kB / 405.8 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.208e-05/0.3614, allocations: 74.66 kB / 405.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.699e-05/0.3614, allocations: 36.75 kB / 405.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004295/0.3619, allocations: 276.4 kB / 406.1 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002142/0.3621, allocations: 146.3 kB / 406.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.744e-05/0.3622, allocations: 28.38 kB / 406.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.3634, allocations: 0.5581 MB / 406.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.6e-05/0.3634, allocations: 3.953 kB / 406.9 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.946e-05/0.3634, allocations: 12 kB / 406.9 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.3635, allocations: 8 kB / 406.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.3648, allocations: 0.5152 MB / 407.4 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.3663, allocations: 0.9948 MB / 408.4 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.3679, allocations: 0.4985 MB / 408.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006454/0.3686, allocations: 263.5 kB / 409.2 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.414e-05/0.3686, allocations: 11.94 kB / 409.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.3687, allocations: 42.55 kB / 409.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.244e-06/0.3687, allocations: 0 / 409.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03817/0.4069, allocations: 5.733 MB / 414.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.407, allocations: 145 kB / 415.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002693/0.4073, allocations: 196.2 kB / 415.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.4074, allocations: 45.7 kB / 415.3 MB, free: 9.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.4075, allocations: 145.7 kB / 415.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00022/0.4078, allocations: 198.4 kB / 415.7 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002929/0.4081, allocations: 110.7 kB / 415.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.4082, allocations: 338.8 kB / 416.1 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001584/0.4098, allocations: 0.6188 MB / 416.7 MB, free: 7.926 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001729/0.4116, allocations: 0.8041 MB / 417.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003109/0.4147, allocations: 1.256 MB / 418.8 MB, free: 5.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.4147, allocations: 0 / 418.8 MB, free: 5.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003639/0.4184, allocations: 1.398 MB / 420.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.4184, allocations: 8 kB / 420.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.4184, allocations: 7.938 kB / 420.2 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.67e-05/0.4185, allocations: 8 kB / 420.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.4198, allocations: 211.7 kB / 420.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.149e-05/0.4198, allocations: 12 kB / 420.4 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009697/0.4208, allocations: 103.8 kB / 420.5 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-05/0.4209, allocations: 24 kB / 420.5 MB, free: 3.938 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003676/0.4213, allocations: 189.6 kB / 420.7 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003404/0.4216, allocations: 161.2 kB / 420.9 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000183/0.4218, allocations: 59.3 kB / 420.9 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.507e-06/0.4218, allocations: 8 kB / 420.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.4219, allocations: 4 kB / 421 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.4219, allocations: 3.984 kB / 421 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004976/0.4268, allocations: 2.175 MB / 423.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-05/0.4269, allocations: 13 kB / 423.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007722/0.4277, allocations: 187.7 kB / 423.3 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.875e-05/0.4277, allocations: 12 kB / 423.3 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.016e-05/0.4278, allocations: 24 kB / 423.4 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.821e-05/0.4278, allocations: 23.92 kB / 423.4 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.457e-05/0.4278, allocations: 15.94 kB / 423.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003236/0.431, allocations: 1.553 MB / 425 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000288/0.4314, allocations: 168.7 kB / 425.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.208e-05/0.4314, allocations: 24 kB / 425.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006321/0.4321, allocations: 79.91 kB / 425.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002169/0.4323, allocations: 95.73 kB / 425.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-05/0.4324, allocations: 28 kB / 425.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001532/0.4325, allocations: 144.1 kB / 425.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4325, allocations: 192 / 425.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007626/0.4333, allocations: 123.9 kB / 425.6 MB, free: 14.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.00362/0.4369, allocations: 2.136 MB / 427.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002963/0.4399, allocations: 1.139 MB / 428.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/0.4399, allocations: 0 / 428.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009997/0.441, allocations: 339.2 kB / 429.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009495/0.4419, allocations: 144.4 kB / 429.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01352/0.4554, allocations: 6.784 MB / 436.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004356/0.4559, allocations: 0.8129 MB / 436.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005082/0.4565, allocations: 95.33 kB / 437 MB, free: 2.391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003928/0.4569, allocations: 115.4 kB / 437.2 MB, free: 2.277 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4569, allocations: 0 / 437.2 MB, free: 2.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03643/0.4933, allocations: 11.3 MB / 448.4 MB, free: 7.098 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.771/9.265, allocations: 8.562 kB / 448.5 MB, free: 7.09 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_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_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable load.phi in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi