Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001319/0.00132, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.001439, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.334, allocations: 50.55 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004408/0.3384, allocations: 2.361 MB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.3402, allocations: 0.8299 MB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.3404, allocations: 7.938 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003222/0.3407, allocations: 55.58 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.341, allocations: 55.56 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005699/0.3415, allocations: 179.6 kB / 412.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004937/0.342, allocations: 383.5 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.3423, allocations: 103.8 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000327/0.3426, allocations: 163.5 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003107/0.343, allocations: 183.2 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.971e-05/0.343, allocations: 32 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.366e-05/0.3431, allocations: 36 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.3432, allocations: 91.78 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.3434, allocations: 147.2 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004426/0.3438, allocations: 341.6 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3439, allocations: 0 / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3439, allocations: 0 / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.3439, allocations: 0 / 413.7 MB, free: 12.58 MB / 334.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.001272/0.3451, allocations: 0.6275 MB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.3452, allocations: 8.031 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.664e-05/0.3453, allocations: 74.72 kB / 414.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.839e-05/0.3454, allocations: 44.69 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004635/0.3459, allocations: 280.4 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.3461, allocations: 138.3 kB / 414.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.415e-05/0.3462, allocations: 28.38 kB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.3474, allocations: 0.5659 MB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.3474, allocations: 3.938 kB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.073e-05/0.3475, allocations: 16 kB / 415.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.3475, allocations: 8 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.3488, allocations: 0.5035 MB / 416 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.3505, allocations: 1.014 MB / 417 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.352, allocations: 0.5024 MB / 417.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006/0.3526, allocations: 266.7 kB / 417.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.649e-05/0.3527, allocations: 4 kB / 417.7 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/0.3528, allocations: 46.55 kB / 417.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.954e-06/0.3528, allocations: 0 / 417.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03897/0.3917, allocations: 5.726 MB / 423.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.3919, allocations: 144.9 kB / 423.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.3921, allocations: 208.8 kB / 423.9 MB, free: 2.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.708e-05/0.3922, allocations: 33.7 kB / 423.9 MB, free: 2.035 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.3923, allocations: 145.8 kB / 424 MB, free: 1.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002109/0.3926, allocations: 198.4 kB / 424.2 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002834/0.3928, allocations: 110.6 kB / 424.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.393, allocations: 342.8 kB / 424.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001506/0.3945, allocations: 0.6149 MB / 425.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.3962, allocations: 0.7964 MB / 426.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002883/0.3991, allocations: 1.251 MB / 427.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3991, allocations: 0 / 427.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003399/0.4025, allocations: 1.406 MB / 428.7 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.285e-05/0.4026, allocations: 8 kB / 428.7 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.4026, allocations: 7.938 kB / 428.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.4026, allocations: 8 kB / 428.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.404, allocations: 215.6 kB / 429 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.404, allocations: 11.94 kB / 429 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009211/0.405, allocations: 107.8 kB / 429.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.617e-05/0.4051, allocations: 24 kB / 429.1 MB, free: 12.63 MB / 350.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.0003194/0.4054, allocations: 181.6 kB / 429.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003249/0.4057, allocations: 157.7 kB / 429.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001569/0.4059, allocations: 63.31 kB / 429.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.4059, allocations: 11.98 kB / 429.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4059, allocations: 4.094 kB / 429.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.4059, allocations: 3.938 kB / 429.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004723/0.4107, allocations: 2.172 MB / 431.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.4107, allocations: 8 kB / 431.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007567/0.4114, allocations: 183.7 kB / 431.9 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-05/0.4115, allocations: 16.47 kB / 431.9 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.824e-05/0.4115, allocations: 20 kB / 431.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-05/0.4115, allocations: 23.94 kB / 431.9 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.494e-05/0.4116, allocations: 19.92 kB / 432 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003066/0.4146, allocations: 1.553 MB / 433.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002045/0.4149, allocations: 168.8 kB / 433.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.931e-05/0.4149, allocations: 28 kB / 433.7 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005815/0.4155, allocations: 75.91 kB / 433.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.4157, allocations: 91.67 kB / 433.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.48e-05/0.4158, allocations: 28 kB / 433.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001337/0.4159, allocations: 144.1 kB / 434 MB, free: 7.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4159, allocations: 4 kB / 434 MB, free: 7.324 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000652/0.4166, allocations: 123.9 kB / 434.2 MB, free: 7.203 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.003456/0.42, allocations: 2.125 MB / 436.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002721/0.4228, allocations: 1.132 MB / 437.4 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.4228, allocations: 0 / 437.4 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009831/0.4238, allocations: 338.4 kB / 437.8 MB, free: 3.457 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009224/0.4247, allocations: 155.9 kB / 437.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01311/0.4378, allocations: 6.791 MB / 444.7 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000532/0.4384, allocations: 0.8167 MB / 445.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004876/0.4389, allocations: 95.33 kB / 445.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003758/0.4393, allocations: 119.4 kB / 445.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4393, allocations: 0 / 445.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04146/0.4808, allocations: 11.3 MB / 457 MB, free: 15.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.056/9.537, allocations: 2.625 kB / 457 MB, free: 15.78 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_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