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.0013/0.0013, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 197.2 kB / 18.73 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.529/1.529, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002124/0.002124, allocations: 59.89 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3369, allocations: 50.55 MB / 408.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003951/0.3409, allocations: 2.357 MB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001655/0.3426, allocations: 0.8377 MB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.3427, allocations: 4 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002935/0.3431, allocations: 47.58 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002152/0.3433, allocations: 67.48 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005198/0.3438, allocations: 167.7 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000452/0.3443, allocations: 387.5 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000217/0.3445, allocations: 103.8 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000298/0.3448, allocations: 163.5 kB / 412.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002645/0.3451, allocations: 175.3 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.184e-05/0.3452, allocations: 39.94 kB / 413.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.999e-05/0.3452, allocations: 32 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.3454, allocations: 95.77 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.3455, allocations: 143.2 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004306/0.346, allocations: 337.6 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.346, allocations: 4 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.346, allocations: 0 / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.346, allocations: 0 / 413.7 MB, free: 12.5 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.001258/0.3473, allocations: 0.6275 MB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3473, allocations: 15.97 kB / 414.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.48e-05/0.3474, allocations: 70.72 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.982e-05/0.3475, allocations: 44.7 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004514/0.3479, allocations: 284.3 kB / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002107/0.3482, allocations: 142.3 kB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.262e-05/0.3482, allocations: 28.38 kB / 414.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.3496, allocations: 0.5698 MB / 415.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.3496, allocations: 0 / 415.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.674e-05/0.3496, allocations: 12 kB / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.3496, allocations: 4 kB / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.3511, allocations: 0.5074 MB / 416 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.3531, allocations: 1.006 MB / 417 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.3548, allocations: 0.5063 MB / 417.5 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000682/0.3555, allocations: 263.5 kB / 417.8 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.806e-05/0.3556, allocations: 19.98 kB / 417.8 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.3557, allocations: 38.5 kB / 417.9 MB, free: 8.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.874e-06/0.3557, allocations: 4 kB / 417.9 MB, free: 8.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03988/0.3956, allocations: 5.72 MB / 423.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/0.3957, allocations: 148.9 kB / 423.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002482/0.396, allocations: 208.8 kB / 423.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.455e-05/0.3961, allocations: 37.7 kB / 424 MB, free: 1.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.3962, allocations: 137.8 kB / 424.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000211/0.3964, allocations: 198.4 kB / 424.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00031/0.3967, allocations: 114.6 kB / 424.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.3969, allocations: 342.8 kB / 424.7 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001733/0.3987, allocations: 0.6188 MB / 425.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001849/0.4005, allocations: 0.8002 MB / 426.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003283/0.4038, allocations: 1.24 MB / 427.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.4038, allocations: 4 kB / 427.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003826/0.4077, allocations: 1.402 MB / 428.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.4077, allocations: 8 kB / 428.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.4077, allocations: 12.36 kB / 428.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.4078, allocations: 11.94 kB / 428.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.4091, allocations: 207.7 kB / 429 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.119e-05/0.4091, allocations: 11.94 kB / 429.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009353/0.4101, allocations: 107.7 kB / 429.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.522e-05/0.4102, allocations: 28 kB / 429.2 MB, free: 12.54 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.0003395/0.4105, allocations: 185.6 kB / 429.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003277/0.4109, allocations: 153.4 kB / 429.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000212/0.4111, allocations: 63.3 kB / 429.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.4111, allocations: 8 kB / 429.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.4111, allocations: 0 / 429.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.4111, allocations: 7.984 kB / 429.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005069/0.4162, allocations: 2.168 MB / 431.8 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.524e-05/0.4162, allocations: 8 kB / 431.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007748/0.417, allocations: 191.8 kB / 432 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.592e-05/0.417, allocations: 12 kB / 432 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/0.4171, allocations: 28 kB / 432 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.068e-05/0.4171, allocations: 19.92 kB / 432 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-05/0.4171, allocations: 15.94 kB / 432 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003401/0.4205, allocations: 1.557 MB / 433.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002176/0.4208, allocations: 164.8 kB / 433.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.53e-05/0.4209, allocations: 23.98 kB / 433.8 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005978/0.4215, allocations: 79.98 kB / 433.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.4217, allocations: 95.61 kB / 433.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.94e-05/0.4217, allocations: 39.98 kB / 434 MB, free: 7.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001507/0.4219, allocations: 136.1 kB / 434.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4219, allocations: 0 / 434.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006806/0.4226, allocations: 127.9 kB / 434.2 MB, free: 7.109 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.003988/0.4266, allocations: 2.117 MB / 436.4 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.4297, allocations: 1.135 MB / 437.5 MB, free: 3.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.4298, allocations: 5.375 kB / 437.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.4309, allocations: 341.8 kB / 437.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000962/0.4318, allocations: 143.6 kB / 438 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.4461, allocations: 6.792 MB / 444.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005559/0.4467, allocations: 0.8129 MB / 445.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005344/0.4472, allocations: 95.31 kB / 445.7 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004005/0.4477, allocations: 115.4 kB / 445.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4477, allocations: 0 / 445.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03774/0.4854, allocations: 11.3 MB / 457.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.35/9.835, allocations: 2.875 kB / 457.1 MB, free: 15.7 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 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.mat","/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) Reference file matches