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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001771/0.001771, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002229/0.002229, allocations: 207.8 kB / 23.73 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 230.5 MB / 257.4 MB, free: 7.754 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 67.89 kB / 377.7 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2813, allocations: 53.4 MB / 431.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003818/0.2851, allocations: 2.265 MB / 433.4 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.2866, allocations: 0.7988 MB / 434.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/0.2867, allocations: 7.938 kB / 434.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.287, allocations: 59.56 kB / 434.3 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000209/0.2872, allocations: 59.5 kB / 434.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005123/0.2877, allocations: 171.6 kB / 434.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004585/0.2882, allocations: 387.5 kB / 434.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.2884, allocations: 74.89 kB / 434.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002977/0.2887, allocations: 171.4 kB / 435.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002365/0.2889, allocations: 163.3 kB / 435.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.481e-05/0.289, allocations: 32 kB / 435.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.989e-05/0.289, allocations: 36 kB / 435.3 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.2891, allocations: 99.72 kB / 435.4 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.2893, allocations: 127.4 kB / 435.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003965/0.2897, allocations: 342.6 kB / 435.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2897, allocations: 0 / 435.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2897, allocations: 4 kB / 435.9 MB, free: 1.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.2897, allocations: 4 kB / 435.9 MB, free: 1.652 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.001206/0.2909, allocations: 0.5483 MB / 436.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2909, allocations: 11.98 kB / 436.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.014e-05/0.291, allocations: 78.66 kB / 436.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.45e-05/0.2911, allocations: 44.7 kB / 436.6 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003795/0.2914, allocations: 218.5 kB / 436.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003077/0.2918, allocations: 351.8 kB / 437.1 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.388e-05/0.2918, allocations: 40.36 kB / 437.2 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.2931, allocations: 0.5582 MB / 437.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.2931, allocations: 3.984 kB / 437.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.2931, allocations: 16 kB / 437.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.2931, allocations: 11.94 kB / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.2946, allocations: 0.5074 MB / 438.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001511/0.2961, allocations: 0.8985 MB / 439.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.2976, allocations: 474.4 kB / 439.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007005/0.2983, allocations: 242.4 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.396e-05/0.2984, allocations: 4 kB / 439.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/0.2984, allocations: 50.48 kB / 439.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.134e-06/0.2984, allocations: 0 / 439.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03766/0.3361, allocations: 5.739 MB / 445.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.3362, allocations: 152.8 kB / 445.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.3365, allocations: 212 kB / 446 MB, free: 7.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.986e-05/0.3366, allocations: 33.7 kB / 446 MB, free: 7.156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.3367, allocations: 145.8 kB / 446.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002109/0.3369, allocations: 206.3 kB / 446.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002794/0.3372, allocations: 106.7 kB / 446.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3373, allocations: 346.8 kB / 446.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001678/0.339, allocations: 0.6227 MB / 447.5 MB, free: 5.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001802/0.3408, allocations: 0.8042 MB / 448.3 MB, free: 4.844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003224/0.344, allocations: 1.26 MB / 449.5 MB, free: 3.512 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.3441, allocations: 4 kB / 449.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003715/0.3478, allocations: 1.411 MB / 450.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.3478, allocations: 8 kB / 450.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.3478, allocations: 7.984 kB / 450.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.829e-05/0.3478, allocations: 12.19 kB / 451 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.3492, allocations: 207.7 kB / 451.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.18e-05/0.3492, allocations: 15.88 kB / 451.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009718/0.3502, allocations: 103.8 kB / 451.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-05/0.3502, allocations: 28 kB / 451.3 MB, free: 1.711 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.0003478/0.3506, allocations: 186 kB / 451.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003196/0.3509, allocations: 149.4 kB / 451.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001752/0.3511, allocations: 67.3 kB / 451.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.3511, allocations: 8 kB / 451.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.3511, allocations: 3.938 kB / 451.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.3511, allocations: 7.984 kB / 451.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005081/0.3562, allocations: 1.961 MB / 453.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/0.3562, allocations: 12.19 kB / 453.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007836/0.357, allocations: 183.7 kB / 453.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.023e-05/0.357, allocations: 19.88 kB / 453.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.408e-05/0.3571, allocations: 24 kB / 453.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-05/0.3571, allocations: 19.92 kB / 453.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-05/0.3571, allocations: 15.94 kB / 453.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003741/0.3609, allocations: 1.573 MB / 455.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002863/0.3612, allocations: 91.62 kB / 455.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.537e-05/0.3612, allocations: 27.98 kB / 455.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006436/0.3619, allocations: 79.91 kB / 455.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002586/0.3621, allocations: 99.64 kB / 455.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.904e-05/0.3622, allocations: 40 kB / 455.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001579/0.3624, allocations: 145.2 kB / 456 MB, free: 12.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3624, allocations: 0 / 456 MB, free: 12.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007153/0.3631, allocations: 124 kB / 456.1 MB, free: 12.56 MB / 366.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.003997/0.3671, allocations: 2.145 MB / 458.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003031/0.3701, allocations: 1.039 MB / 459.3 MB, free: 9.215 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.807e-05/0.3701, allocations: 8.062 kB / 459.3 MB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.3712, allocations: 341.8 kB / 459.6 MB, free: 8.875 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.3723, allocations: 137.3 kB / 459.8 MB, free: 8.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01371/0.386, allocations: 6.838 MB / 466.6 MB, free: 1.414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.3862, allocations: 211.3 kB / 466.8 MB, free: 1.184 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005334/0.3868, allocations: 95.3 kB / 466.9 MB, free: 1.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000381/0.3871, allocations: 111.4 kB / 467 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of SimCode: time 1.713e-06/0.3871, allocations: 0 / 467 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04297/0.4301, allocations: 12.65 MB / 479.7 MB, free: 4.484 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.02, allocations: 11.42 kB / 479.7 MB, free: 4.477 MB / 382.1 MB " [Timeout remaining time 648] (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 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.857603133656085]