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.001835/0.001835, allocations: 113.2 kB / 16.62 MB, free: 6.805 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.001772/0.001772, allocations: 189.8 kB / 17.55 MB, free: 5.93 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.394/1.394, allocations: 222.9 MB / 241.2 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 43.56 kB / 300.2 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.119, allocations: 49.45 MB / 349.7 MB, free: 4.637 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003928/0.1229, allocations: 2.377 MB / 352.1 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001608/0.1246, allocations: 0.7988 MB / 352.9 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.1248, allocations: 7.938 kB / 352.9 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003215/0.1252, allocations: 39.77 kB / 352.9 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.1254, allocations: 47.69 kB / 352.9 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005564/0.126, allocations: 160.6 kB / 353.1 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004479/0.1264, allocations: 383.5 kB / 353.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.1267, allocations: 95.83 kB / 353.6 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002707/0.1269, allocations: 163.5 kB / 353.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000251/0.1272, allocations: 171.3 kB / 353.9 MB, free: 396 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.31e-05/0.1273, allocations: 36 kB / 353.9 MB, free: 360 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.192e-05/0.1273, allocations: 36 kB / 354 MB, free: 324 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.1275, allocations: 99.72 kB / 354.1 MB, free: 224 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.1276, allocations: 155.2 kB / 354.2 MB, free: 68 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003544/0.128, allocations: 327.2 kB / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.128, allocations: 0 / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.128, allocations: 0 / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.128, allocations: 3.938 kB / 354.5 MB, free: 15.74 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.00124/0.1293, allocations: 0.62 MB / 355.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.1293, allocations: 12.03 kB / 355.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.681e-05/0.1294, allocations: 70.72 kB / 355.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.816e-05/0.1295, allocations: 36.56 kB / 355.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.1298, allocations: 276.3 kB / 355.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/0.13, allocations: 138.3 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-05/0.1301, allocations: 28.38 kB / 355.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.1313, allocations: 0.5699 MB / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.1314, allocations: 8 kB / 356.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.419e-05/0.1314, allocations: 12 kB / 356.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.1314, allocations: 8 kB / 356.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.1329, allocations: 0.5113 MB / 356.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.1344, allocations: 0.9981 MB / 357.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.136, allocations: 0.5102 MB / 358.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006049/0.1366, allocations: 259.3 kB / 358.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.774e-05/0.1367, allocations: 16.08 kB / 358.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.1367, allocations: 42.56 kB / 358.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.954e-06/0.1367, allocations: 0 / 358.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03963/0.1764, allocations: 5.713 MB / 364.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.1765, allocations: 141 kB / 364.5 MB, free: 5.473 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.1768, allocations: 204.2 kB / 364.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.71e-05/0.1769, allocations: 33.7 kB / 364.7 MB, free: 5.223 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.177, allocations: 145.5 kB / 364.9 MB, free: 5.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001986/0.1772, allocations: 189.3 kB / 365 MB, free: 4.891 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003176/0.1775, allocations: 114.6 kB / 365.2 MB, free: 4.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1777, allocations: 342.8 kB / 365.5 MB, free: 4.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001549/0.1793, allocations: 0.6188 MB / 366.1 MB, free: 3.809 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001694/0.181, allocations: 0.7963 MB / 366.9 MB, free: 2.938 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002997/0.184, allocations: 1.251 MB / 368.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.184, allocations: 0 / 368.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003539/0.1876, allocations: 1.402 MB / 369.6 MB, free: 204 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.1876, allocations: 8 kB / 369.6 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/0.1876, allocations: 4 kB / 369.6 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.92e-05/0.1877, allocations: 11.98 kB / 369.6 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1834/0.3711, allocations: 209.7 kB / 369.8 MB, free: 26.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.392e-05/0.3712, allocations: 10.48 kB / 369.8 MB, free: 26.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.3723, allocations: 106.1 kB / 369.9 MB, free: 26.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.978e-05/0.3725, allocations: 26 kB / 369.9 MB, free: 26.44 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.0003258/0.3728, allocations: 176.1 kB / 370.1 MB, free: 26.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003438/0.3731, allocations: 162.1 kB / 370.3 MB, free: 26.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001537/0.3733, allocations: 63.05 kB / 370.3 MB, free: 26.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.3733, allocations: 8.031 kB / 370.3 MB, free: 26.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.3733, allocations: 2.25 kB / 370.3 MB, free: 26.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.3733, allocations: 4.891 kB / 370.3 MB, free: 26.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004698/0.378, allocations: 2.17 MB / 372.5 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/0.3781, allocations: 10.12 kB / 372.5 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000765/0.3789, allocations: 186.1 kB / 372.7 MB, free: 25.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.042e-05/0.3789, allocations: 17.91 kB / 372.7 MB, free: 25.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.988e-05/0.379, allocations: 25.5 kB / 372.7 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.393e-05/0.379, allocations: 20.97 kB / 372.8 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.548e-05/0.379, allocations: 14.75 kB / 372.8 MB, free: 25.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002906/0.3819, allocations: 1.561 MB / 374.3 MB, free: 24.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001798/0.3821, allocations: 160.1 kB / 374.5 MB, free: 24.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.635e-05/0.3822, allocations: 32.38 kB / 374.5 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005712/0.3828, allocations: 76.97 kB / 374.6 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.383, allocations: 95.44 kB / 374.7 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.882e-05/0.383, allocations: 34.92 kB / 374.7 MB, free: 24.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001211/0.3832, allocations: 138.6 kB / 374.9 MB, free: 24.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3832, allocations: 0 / 374.9 MB, free: 24.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006743/0.3839, allocations: 121.8 kB / 375 MB, free: 24.31 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.003036/0.3869, allocations: 2.127 MB / 377.1 MB, free: 22.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002713/0.3896, allocations: 1.157 MB / 378.3 MB, free: 22.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/0.3897, allocations: 2.469 kB / 378.3 MB, free: 22.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009831/0.3906, allocations: 349.1 kB / 378.6 MB, free: 22.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000902/0.3916, allocations: 129.7 kB / 378.7 MB, free: 22.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01167/0.4032, allocations: 6.936 MB / 385.7 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.4035, allocations: 0.8172 MB / 386.5 MB, free: 16.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005915/0.4041, allocations: 85.92 kB / 386.6 MB, free: 16.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003481/0.4045, allocations: 120 kB / 386.7 MB, free: 16.82 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4045, allocations: 0 / 386.7 MB, free: 16.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0219/0.4264, allocations: 10.97 MB / 397.7 MB, free: 9.848 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/0.4266, allocations: 207.5 kB / 397.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.172/2.598, allocations: 0 / 397.9 MB, free: 9.598 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