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.001232/0.001232, allocations: 103.8 kB / 16.92 MB, free: 6.145 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.001224/0.001225, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.446/1.446, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 50.42 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1078, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003913/0.1117, allocations: 2.343 MB / 352.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001784/0.1135, allocations: 0.7987 MB / 353.3 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003019/0.1139, allocations: 11.94 kB / 353.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003427/0.1142, allocations: 47.58 kB / 353.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.1145, allocations: 59.55 kB / 353.4 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005933/0.1151, allocations: 183.5 kB / 353.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.1156, allocations: 379.6 kB / 354 MB, free: 500 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.1158, allocations: 95.83 kB / 354.1 MB, free: 404 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002565/0.1161, allocations: 163.5 kB / 354.2 MB, free: 240 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.1163, allocations: 175.2 kB / 354.4 MB, free: 64 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.571e-05/0.1164, allocations: 36 kB / 354.4 MB, free: 28 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.272e-05/0.1165, allocations: 32.05 kB / 354.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.1166, allocations: 107.7 kB / 354.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001507/0.1168, allocations: 147.2 kB / 354.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003602/0.1171, allocations: 327.2 kB / 355 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1172, allocations: 4 kB / 355 MB, free: 15.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1172, allocations: 3.938 kB / 355 MB, free: 15.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.789e-06/0.1172, allocations: 0 / 355 MB, free: 15.42 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001274/0.1185, allocations: 0.62 MB / 355.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.1185, allocations: 8.031 kB / 355.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.036e-05/0.1186, allocations: 70.72 kB / 355.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.857e-05/0.1187, allocations: 36.56 kB / 355.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003549/0.1191, allocations: 276.3 kB / 356 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002032/0.1193, allocations: 142.3 kB / 356.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.682e-05/0.1193, allocations: 28.36 kB / 356.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.1205, allocations: 0.5659 MB / 356.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.1206, allocations: 4 kB / 356.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.59e-05/0.1206, allocations: 12 kB / 356.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.1206, allocations: 8 kB / 356.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.1221, allocations: 0.5117 MB / 357.3 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.1238, allocations: 1.002 MB / 358.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.1254, allocations: 0.5063 MB / 358.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006477/0.1261, allocations: 266.5 kB / 359.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.238e-05/0.1262, allocations: 8.141 kB / 359.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.1262, allocations: 42.56 kB / 359.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.765e-06/0.1262, allocations: 4 kB / 359.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.04014/0.1664, allocations: 5.711 MB / 364.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.1665, allocations: 145 kB / 365 MB, free: 5.152 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002451/0.1668, allocations: 200.2 kB / 365.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.156e-05/0.1669, allocations: 41.64 kB / 365.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.699e-05/0.167, allocations: 141.5 kB / 365.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001909/0.1672, allocations: 193.3 kB / 365.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000285/0.1675, allocations: 110.6 kB / 365.6 MB, free: 4.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1676, allocations: 346.8 kB / 366 MB, free: 4.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/0.1693, allocations: 0.6152 MB / 366.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001698/0.171, allocations: 0.7963 MB / 367.4 MB, free: 2.613 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003021/0.174, allocations: 1.255 MB / 368.7 MB, free: 1.281 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.1741, allocations: 0 / 368.7 MB, free: 1.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1607/0.3347, allocations: 1.397 MB / 370 MB, free: 25.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.3348, allocations: 6.938 kB / 370.1 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.3348, allocations: 5.812 kB / 370.1 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.95e-05/0.3349, allocations: 9.125 kB / 370.1 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/0.3363, allocations: 207.9 kB / 370.3 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.337e-05/0.3364, allocations: 14.88 kB / 370.3 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009887/0.3374, allocations: 102.7 kB / 370.4 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.561e-05/0.3375, allocations: 33.88 kB / 370.4 MB, free: 25.96 MB / 302.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.0002842/0.3378, allocations: 174.7 kB / 370.6 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/0.3381, allocations: 154.5 kB / 370.7 MB, free: 25.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001495/0.3382, allocations: 61.92 kB / 370.8 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.3383, allocations: 8.219 kB / 370.8 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.3383, allocations: 2.75 kB / 370.8 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.3383, allocations: 7.219 kB / 370.8 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004864/0.3432, allocations: 2.173 MB / 373 MB, free: 25.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.99e-05/0.3432, allocations: 11.12 kB / 373 MB, free: 25.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007978/0.344, allocations: 184.6 kB / 373.2 MB, free: 25.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.517e-05/0.344, allocations: 14.22 kB / 373.2 MB, free: 25.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.816e-05/0.3441, allocations: 23.73 kB / 373.2 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.946e-05/0.3441, allocations: 24.11 kB / 373.2 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.289e-05/0.3441, allocations: 20.12 kB / 373.3 MB, free: 25.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003047/0.3472, allocations: 1.556 MB / 374.8 MB, free: 24.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.3474, allocations: 158.4 kB / 375 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.526e-05/0.3474, allocations: 26.86 kB / 375 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005895/0.348, allocations: 82.02 kB / 375.1 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002076/0.3483, allocations: 93.03 kB / 375.2 MB, free: 23.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.84e-05/0.3483, allocations: 32.41 kB / 375.2 MB, free: 23.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.3484, allocations: 145 kB / 375.3 MB, free: 23.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3484, allocations: 4 kB / 375.3 MB, free: 23.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006596/0.3491, allocations: 121.8 kB / 375.5 MB, free: 23.82 MB / 302.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.003185/0.3523, allocations: 2.122 MB / 377.6 MB, free: 22.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002907/0.3552, allocations: 1.154 MB / 378.7 MB, free: 21.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.3553, allocations: 1.188 kB / 378.7 MB, free: 21.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000989/0.3562, allocations: 341.1 kB / 379.1 MB, free: 21.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009294/0.3572, allocations: 140.2 kB / 379.2 MB, free: 21.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01339/0.3706, allocations: 6.788 MB / 386 MB, free: 17.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000429/0.3711, allocations: 0.8127 MB / 386.8 MB, free: 16.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006404/0.3717, allocations: 91.62 kB / 386.9 MB, free: 16.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003688/0.3721, allocations: 119.9 kB / 387 MB, free: 16.48 MB / 302.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3721, allocations: 0 / 387 MB, free: 16.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03119/0.4033, allocations: 11.24 MB / 398.3 MB, free: 9.172 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.121/8.525, allocations: 10.53 kB / 398.3 MB, free: 9.164 MB / 302.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