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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001977/0.001977, allocations: 105.5 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 185.1 kB / 23.72 MB, free: 4.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 51.86 kB / 370.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3038, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003798/0.3076, allocations: 2.385 MB / 425 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.3091, allocations: 0.8105 MB / 425.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.3092, allocations: 11.94 kB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002939/0.3095, allocations: 55.56 kB / 425.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.3097, allocations: 63.5 kB / 425.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004774/0.3102, allocations: 179.6 kB / 426.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000465/0.3107, allocations: 383.6 kB / 426.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.3109, allocations: 76.34 kB / 426.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003206/0.3112, allocations: 171.4 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003705/0.3116, allocations: 179.3 kB / 426.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.799e-05/0.3116, allocations: 32 kB / 426.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.536e-05/0.3117, allocations: 36 kB / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.3119, allocations: 99.72 kB / 427.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001929/0.3121, allocations: 143.2 kB / 427.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005078/0.3126, allocations: 339 kB / 427.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3126, allocations: 0 / 427.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3126, allocations: 3.938 kB / 427.5 MB, free: 9.664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.3126, allocations: 4 kB / 427.5 MB, free: 9.66 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.001511/0.3141, allocations: 0.5522 MB / 428.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.3142, allocations: 15.97 kB / 428.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001267/0.3143, allocations: 62.73 kB / 428.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.76e-05/0.3144, allocations: 40.75 kB / 428.2 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005092/0.3149, allocations: 226.4 kB / 428.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004001/0.3153, allocations: 343.9 kB / 428.8 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.136e-05/0.3154, allocations: 36.38 kB / 428.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.3167, allocations: 0.5543 MB / 429.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.806e-05/0.3168, allocations: 0 / 429.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.3168, allocations: 12 kB / 429.4 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.3168, allocations: 4 kB / 429.4 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001441/0.3183, allocations: 0.5229 MB / 429.9 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001844/0.3201, allocations: 0.9336 MB / 430.8 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001692/0.3218, allocations: 478.5 kB / 431.3 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007084/0.3225, allocations: 239.4 kB / 431.5 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.425e-05/0.3225, allocations: 12.08 kB / 431.5 MB, free: 5.387 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/0.3226, allocations: 46.5 kB / 431.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.724e-06/0.3226, allocations: 0 / 431.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03837/0.361, allocations: 5.741 MB / 437.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.3611, allocations: 148.9 kB / 437.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.3613, allocations: 196.4 kB / 437.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.132e-05/0.3614, allocations: 33.7 kB / 437.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3615, allocations: 153.7 kB / 437.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002178/0.3617, allocations: 202.3 kB / 438.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000283/0.362, allocations: 102.7 kB / 438.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.3622, allocations: 342.8 kB / 438.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001605/0.3638, allocations: 0.6226 MB / 439.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001824/0.3656, allocations: 0.7963 MB / 439.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003167/0.3688, allocations: 1.259 MB / 441.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.3688, allocations: 0 / 441.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003663/0.3724, allocations: 1.402 MB / 442.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.3725, allocations: 8 kB / 442.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.3725, allocations: 4 kB / 442.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.319e-05/0.3725, allocations: 12 kB / 442.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.3739, allocations: 203.7 kB / 442.8 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.275e-05/0.3739, allocations: 16.28 kB / 442.8 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009739/0.3749, allocations: 99.83 kB / 442.9 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.375, allocations: 28 kB / 442.9 MB, free: 9.75 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.0003927/0.3754, allocations: 181.6 kB / 443.1 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003283/0.3757, allocations: 161.3 kB / 443.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001942/0.3759, allocations: 67.78 kB / 443.3 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.3759, allocations: 8 kB / 443.3 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/0.3759, allocations: 3.984 kB / 443.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.3759, allocations: 0 / 443.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005408/0.3814, allocations: 2.143 MB / 445.5 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.808e-05/0.3814, allocations: 8 kB / 445.5 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008036/0.3822, allocations: 188.5 kB / 445.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.377e-05/0.3822, allocations: 16 kB / 445.7 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.852e-05/0.3823, allocations: 24 kB / 445.7 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.102e-05/0.3823, allocations: 19.92 kB / 445.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.267e-05/0.3823, allocations: 15.94 kB / 445.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/0.386, allocations: 1.557 MB / 447.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002204/0.3862, allocations: 87.62 kB / 447.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.193e-05/0.3863, allocations: 28 kB / 447.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000599/0.3869, allocations: 79.91 kB / 447.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/0.3871, allocations: 99.64 kB / 447.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.588e-05/0.3871, allocations: 40 kB / 447.6 MB, free: 4.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001489/0.3873, allocations: 137.2 kB / 447.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3873, allocations: 0 / 447.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000698/0.388, allocations: 127.9 kB / 447.9 MB, free: 4.434 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.004111/0.3921, allocations: 2.121 MB / 450 MB, free: 2.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002844/0.3949, allocations: 1.025 MB / 451 MB, free: 1.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.3949, allocations: 3.938 kB / 451 MB, free: 1.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.396, allocations: 334.4 kB / 451.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009736/0.3969, allocations: 137.5 kB / 451.5 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01412/0.411, allocations: 6.785 MB / 458.3 MB, free: 9.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000761/0.4118, allocations: 0.8167 MB / 459.1 MB, free: 8.543 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005161/0.4123, allocations: 95.31 kB / 459.2 MB, free: 8.445 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004042/0.4127, allocations: 111.4 kB / 459.3 MB, free: 8.336 MB / 366.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4127, allocations: 0 / 459.3 MB, free: 8.336 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05048/0.4632, allocations: 12.03 MB / 471.3 MB, free: 12.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.34, allocations: 6.469 kB / 471.4 MB, free: 12.44 MB / 382.1 MB " [Timeout remaining time 648] (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 --stepSize=0.000499563 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.00970853609033]