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.001113/0.001113, allocations: 99.08 kB / 16.5 MB, free: 6.641 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.001183/0.001184, allocations: 195.5 kB / 17.42 MB, free: 6.066 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.413/1.413, allocations: 222.9 MB / 241.1 MB, free: 15.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 50.42 kB / 300.1 MB, free: 6.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1195, allocations: 49.44 MB / 349.5 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004416/0.124, allocations: 2.389 MB / 351.9 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.1257, allocations: 0.7988 MB / 352.7 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002823/0.126, allocations: 8 kB / 352.7 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000364/0.1264, allocations: 43.69 kB / 352.7 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003023/0.1268, allocations: 39.75 kB / 352.8 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006166/0.1274, allocations: 157.7 kB / 352.9 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004921/0.1279, allocations: 363.6 kB / 353.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002298/0.1281, allocations: 91.83 kB / 353.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002954/0.1284, allocations: 139.5 kB / 353.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002892/0.1287, allocations: 175.2 kB / 353.7 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.145e-05/0.1288, allocations: 20 kB / 353.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.127e-05/0.1289, allocations: 28 kB / 353.7 MB, free: 488 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.129, allocations: 87.7 kB / 353.8 MB, free: 400 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.1292, allocations: 135.2 kB / 353.9 MB, free: 264 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003303/0.1295, allocations: 311.2 kB / 354.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1295, allocations: 8 kB / 354.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1295, allocations: 0 / 354.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.517e-06/0.1295, allocations: 0 / 354.3 MB, free: 15.95 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.001296/0.1308, allocations: 0.6162 MB / 354.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.1309, allocations: 8.031 kB / 354.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.021e-05/0.131, allocations: 74.66 kB / 355 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.376e-05/0.1311, allocations: 36.56 kB / 355 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003609/0.1315, allocations: 280.2 kB / 355.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.1317, allocations: 142.3 kB / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.755e-05/0.1317, allocations: 24.38 kB / 355.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.1329, allocations: 0.566 MB / 356 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.133, allocations: 11.92 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.58e-05/0.133, allocations: 8 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.133, allocations: 11.94 kB / 356 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001305/0.1343, allocations: 0.5113 MB / 356.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.1359, allocations: 1.006 MB / 357.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.1374, allocations: 0.5062 MB / 358 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005829/0.138, allocations: 259.4 kB / 358.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.992e-05/0.1381, allocations: 4 kB / 358.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.1381, allocations: 50.48 kB / 358.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.843e-06/0.1382, allocations: 0 / 358.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03823/0.1764, allocations: 5.705 MB / 364.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.1766, allocations: 148.9 kB / 364.2 MB, free: 5.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002453/0.1768, allocations: 200.2 kB / 364.4 MB, free: 5.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.1769, allocations: 37.7 kB / 364.4 MB, free: 5.426 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.177, allocations: 141.5 kB / 364.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/0.1773, allocations: 193.3 kB / 364.8 MB, free: 5.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003124/0.1776, allocations: 118.6 kB / 364.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1777, allocations: 338.8 kB / 365.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/0.1792, allocations: 0.611 MB / 365.8 MB, free: 4.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/0.1808, allocations: 0.8041 MB / 366.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003037/0.1839, allocations: 1.251 MB / 367.9 MB, free: 1.812 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.1839, allocations: 0 / 367.9 MB, free: 1.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003423/0.1873, allocations: 1.398 MB / 369.3 MB, free: 416 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.1874, allocations: 8 kB / 369.3 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.1874, allocations: 4.047 kB / 369.3 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.887e-05/0.1874, allocations: 15.98 kB / 369.3 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.1887, allocations: 207.6 kB / 369.5 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.495e-05/0.1888, allocations: 11.94 kB / 369.5 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009357/0.1897, allocations: 107.8 kB / 369.6 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.507e-05/0.1898, allocations: 28 kB / 369.6 MB, free: 32 kB / 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.1952/0.385, allocations: 172.5 kB / 369.8 MB, free: 26.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004118/0.3854, allocations: 161.7 kB / 370 MB, free: 26.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001631/0.3856, allocations: 68.3 kB / 370 MB, free: 26.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.3856, allocations: 7.531 kB / 370 MB, free: 26.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.3856, allocations: 3.219 kB / 370 MB, free: 26.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.3857, allocations: 3.781 kB / 370.1 MB, free: 26.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004866/0.3905, allocations: 2.164 MB / 372.2 MB, free: 25.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/0.3906, allocations: 9.688 kB / 372.2 MB, free: 25.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007754/0.3914, allocations: 192.4 kB / 372.4 MB, free: 25.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-05/0.3914, allocations: 14.31 kB / 372.4 MB, free: 25.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.253e-05/0.3914, allocations: 24.23 kB / 372.5 MB, free: 25.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.828e-05/0.3915, allocations: 20.11 kB / 372.5 MB, free: 25.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/0.3915, allocations: 18.75 kB / 372.5 MB, free: 25.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002898/0.3944, allocations: 1.558 MB / 374 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.3946, allocations: 168.4 kB / 374.2 MB, free: 24.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.023e-05/0.3947, allocations: 25.11 kB / 374.2 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005694/0.3952, allocations: 78.39 kB / 374.3 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.3954, allocations: 93.83 kB / 374.4 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.287e-05/0.3955, allocations: 35.73 kB / 374.4 MB, free: 24.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001232/0.3956, allocations: 138.6 kB / 374.6 MB, free: 24.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3956, allocations: 0 / 374.6 MB, free: 24.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000668/0.3963, allocations: 121.2 kB / 374.7 MB, free: 24.44 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.002942/0.3993, allocations: 2.129 MB / 376.8 MB, free: 22.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002875/0.4021, allocations: 1.114 MB / 377.9 MB, free: 22.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.4022, allocations: 5.5 kB / 377.9 MB, free: 22.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009785/0.4031, allocations: 336.6 kB / 378.3 MB, free: 22.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009216/0.4041, allocations: 142.5 kB / 378.4 MB, free: 22.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.4161, allocations: 6.927 MB / 385.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/0.4165, allocations: 0.8102 MB / 386.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005988/0.4171, allocations: 89.94 kB / 386.2 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003743/0.4175, allocations: 114.4 kB / 386.3 MB, free: 16.98 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4175, allocations: 0 / 386.3 MB, free: 16.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.4386, allocations: 10.55 MB / 396.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001457/0.4388, allocations: 209.9 kB / 397.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/2.502, allocations: 2.953 kB / 397.1 MB, free: 10.28 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 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.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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches