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.00157/0.00157, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002193/0.002193, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002122/0.002122, allocations: 64.17 kB / 307 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1397, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004399/0.1442, allocations: 2.352 MB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.1459, allocations: 0.8378 MB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.1461, allocations: 4 kB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00033/0.1465, allocations: 59.5 kB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001952/0.1467, allocations: 51.56 kB / 360.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005053/0.1472, allocations: 183.6 kB / 361.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003748/0.1476, allocations: 367.6 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.1478, allocations: 116.8 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002725/0.1481, allocations: 163.4 kB / 361.7 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.1483, allocations: 179.2 kB / 361.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.937e-05/0.1484, allocations: 36 kB / 361.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.681e-05/0.1485, allocations: 35.94 kB / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.1486, allocations: 87.8 kB / 362 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001458/0.1487, allocations: 155.2 kB / 362.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003299/0.1491, allocations: 327.2 kB / 362.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1491, allocations: 0 / 362.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.1491, allocations: 4 kB / 362.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.1491, allocations: 3.938 kB / 362.5 MB, free: 9.086 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.00132/0.1504, allocations: 0.6163 MB / 363.1 MB, free: 8.422 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.1505, allocations: 8.031 kB / 363.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.498e-05/0.1506, allocations: 66.73 kB / 363.2 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.957e-05/0.1507, allocations: 36.56 kB / 363.2 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004954/0.1512, allocations: 276.2 kB / 363.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.1514, allocations: 142.3 kB / 363.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.149e-05/0.1515, allocations: 28.38 kB / 363.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.1527, allocations: 0.5743 MB / 364.2 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.1527, allocations: 4 kB / 364.2 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.1528, allocations: 8 kB / 364.2 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.1528, allocations: 8 kB / 364.3 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.1543, allocations: 0.5112 MB / 364.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.1559, allocations: 1.006 MB / 365.8 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.1575, allocations: 0.5085 MB / 366.3 MB, free: 5.055 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007259/0.1583, allocations: 267.3 kB / 366.5 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.745e-05/0.1583, allocations: 12.12 kB / 366.6 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.1584, allocations: 38.56 kB / 366.6 MB, free: 4.723 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.004e-06/0.1584, allocations: 0 / 366.6 MB, free: 4.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2646/0.4229, allocations: 5.714 MB / 372.3 MB, free: 21.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.4231, allocations: 149.3 kB / 372.5 MB, free: 21.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.4234, allocations: 201.2 kB / 372.6 MB, free: 20.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.262e-05/0.4235, allocations: 36.77 kB / 372.7 MB, free: 20.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.731e-05/0.4236, allocations: 142.8 kB / 372.8 MB, free: 20.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.4237, allocations: 194.3 kB / 373 MB, free: 20.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003171/0.4241, allocations: 108.8 kB / 373.1 MB, free: 20.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4242, allocations: 342.5 kB / 373.5 MB, free: 20.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/0.426, allocations: 0.6207 MB / 374.1 MB, free: 20.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001875/0.4278, allocations: 0.7944 MB / 374.9 MB, free: 19.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003098/0.431, allocations: 1.251 MB / 376.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.431, allocations: 8.125 kB / 376.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003659/0.4346, allocations: 1.393 MB / 377.5 MB, free: 18.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.4347, allocations: 11.36 kB / 377.5 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.4347, allocations: 9.844 kB / 377.5 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.791e-05/0.4347, allocations: 10.84 kB / 377.6 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/0.4361, allocations: 213.2 kB / 377.8 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.4361, allocations: 10.58 kB / 377.8 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009793/0.4371, allocations: 98.94 kB / 377.9 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.009e-05/0.4372, allocations: 26.77 kB / 377.9 MB, free: 18.27 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.0003087/0.4375, allocations: 191.8 kB / 378.1 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000326/0.4378, allocations: 153.7 kB / 378.2 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001544/0.438, allocations: 59.19 kB / 378.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.438, allocations: 7.875 kB / 378.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/0.438, allocations: 1.531 kB / 378.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.4381, allocations: 6.219 kB / 378.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004671/0.4427, allocations: 2.171 MB / 380.5 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.524e-05/0.4428, allocations: 9.406 kB / 380.5 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000763/0.4435, allocations: 187.9 kB / 380.7 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.516e-05/0.4436, allocations: 14.66 kB / 380.7 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.702e-05/0.4436, allocations: 24.78 kB / 380.7 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.554e-05/0.4436, allocations: 18.55 kB / 380.7 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.059e-05/0.4437, allocations: 15.44 kB / 380.7 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.4469, allocations: 1.554 MB / 382.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002506/0.4471, allocations: 166.1 kB / 382.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.376e-05/0.4472, allocations: 27.33 kB / 382.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006245/0.4479, allocations: 81.02 kB / 382.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/0.4481, allocations: 93.62 kB / 382.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.89e-05/0.4482, allocations: 30 kB / 382.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001623/0.4483, allocations: 147.1 kB / 382.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4483, allocations: 0 / 382.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007755/0.4491, allocations: 121.8 kB / 382.9 MB, free: 15.52 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.003802/0.4529, allocations: 2.12 MB / 385.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003524/0.4565, allocations: 1.156 MB / 386.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.062e-05/0.4565, allocations: 6.781 kB / 386.2 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.4578, allocations: 339.9 kB / 386.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.4588, allocations: 146.5 kB / 386.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.473, allocations: 6.769 MB / 393.5 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.4734, allocations: 0.8094 MB / 394.3 MB, free: 8.152 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007464/0.4742, allocations: 98.08 kB / 394.4 MB, free: 8.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003824/0.4746, allocations: 120.8 kB / 394.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4746, allocations: 0 / 394.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03397/0.5086, allocations: 11.25 MB / 405.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.468/8.977, allocations: 4.062 kB / 405.8 MB, free: 14.41 MB / 318.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.0.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