Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001391/0.001391, allocations: 112 kB / 20.43 MB, free: 1.301 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.001463/0.001463, allocations: 182.1 kB / 23.72 MB, free: 4.559 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.429/1.429, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 43.94 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2949, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004452/0.2993, allocations: 2.175 MB / 424.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.3008, allocations: 0.6471 MB / 425.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002149/0.301, allocations: 3.938 kB / 425.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003288/0.3013, allocations: 47.64 kB / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.3016, allocations: 55.61 kB / 425.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004782/0.3021, allocations: 123.8 kB / 425.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005339/0.3026, allocations: 335.2 kB / 426 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.3028, allocations: 56.55 kB / 426 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003677/0.3032, allocations: 155.5 kB / 426.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004081/0.3036, allocations: 155.4 kB / 426.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001194/0.3037, allocations: 31.98 kB / 426.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.795e-05/0.3038, allocations: 32 kB / 426.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.304, allocations: 87.73 kB / 426.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.3042, allocations: 123.4 kB / 426.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005848/0.3047, allocations: 287.2 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.3047, allocations: 0 / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.3047, allocations: 0 / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.3048, allocations: 0 / 426.9 MB, free: 10.29 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001531/0.3063, allocations: 0.509 MB / 427.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.131e-05/0.3064, allocations: 8.031 kB / 427.4 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.3065, allocations: 62.73 kB / 427.5 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.3066, allocations: 36.75 kB / 427.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005566/0.3071, allocations: 196.3 kB / 427.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004253/0.3076, allocations: 347.5 kB / 428 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.094e-05/0.3076, allocations: 24 kB / 428.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009422/0.3086, allocations: 366.6 kB / 428.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.3086, allocations: 0 / 428.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.648e-05/0.3086, allocations: 12 kB / 428.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.3087, allocations: 4 kB / 428.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.3099, allocations: 497.6 kB / 428.9 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.3119, allocations: 0.942 MB / 429.9 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.3131, allocations: 334.5 kB / 430.2 MB, free: 6.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004961/0.3136, allocations: 161.2 kB / 430.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.897e-05/0.3136, allocations: 240 / 430.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/0.3136, allocations: 42.8 kB / 430.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.3136, allocations: 0 / 430.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02682/0.3405, allocations: 5.654 MB / 436 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.194e-05/0.3405, allocations: 59.84 kB / 436.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.3408, allocations: 202.7 kB / 436.3 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.715e-05/0.3409, allocations: 37.7 kB / 436.3 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.341, allocations: 152.9 kB / 436.5 MB, free: 408 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.3412, allocations: 190.4 kB / 436.7 MB, free: 216 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000213/0.3414, allocations: 82.34 kB / 436.7 MB, free: 128 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002229/0.3417, allocations: 342.8 kB / 437.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.343, allocations: 465 kB / 437.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.3443, allocations: 0.5147 MB / 438.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002377/0.3467, allocations: 0.8023 MB / 438.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3467, allocations: 4 kB / 438.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002852/0.3495, allocations: 0.9891 MB / 439.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.3496, allocations: 16.06 kB / 439.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.3496, allocations: 0 / 439.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.985e-05/0.3496, allocations: 11.88 kB / 439.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.3506, allocations: 167.8 kB / 440 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.982e-05/0.3507, allocations: 7.938 kB / 440 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006961/0.3514, allocations: 87.88 kB / 440.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.458e-05/0.3514, allocations: 16 kB / 440.1 MB, free: 12.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002847/0.3517, allocations: 154.8 kB / 440.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.596e-05/0.3518, allocations: 35.75 kB / 440.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.3519, allocations: 51.3 kB / 440.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.3519, allocations: 4 kB / 440.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.352, allocations: 0 / 440.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.352, allocations: 3.984 kB / 440.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004512/0.3565, allocations: 1.849 MB / 442.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.949e-05/0.3565, allocations: 8 kB / 442.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007183/0.3572, allocations: 143.8 kB / 442.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.162e-05/0.3572, allocations: 15.94 kB / 442.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.422e-05/0.3573, allocations: 20 kB / 442.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.497e-05/0.3573, allocations: 19.92 kB / 442.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-05/0.3573, allocations: 16.19 kB / 442.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.3605, allocations: 1.217 MB / 443.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002463/0.3608, allocations: 75.73 kB / 443.8 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.233e-05/0.3609, allocations: 27.98 kB / 443.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004991/0.3614, allocations: 67.92 kB / 443.8 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.3616, allocations: 91.64 kB / 443.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/0.3616, allocations: 24 kB / 444 MB, free: 8.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002022/0.3618, allocations: 143.2 kB / 444.1 MB, free: 8.438 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3618, allocations: 0 / 444.1 MB, free: 8.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000568/0.3624, allocations: 96 kB / 444.2 MB, free: 8.344 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.003276/0.3657, allocations: 1.785 MB / 446 MB, free: 6.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.368, allocations: 0.7863 MB / 446.8 MB, free: 5.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/0.368, allocations: 4 kB / 446.8 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009517/0.369, allocations: 317.8 kB / 447.1 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006955/0.3697, allocations: 55.97 kB / 447.1 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.3809, allocations: 5.251 MB / 452.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000463/0.3813, allocations: 0.7879 MB / 453.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004119/0.3817, allocations: 79.19 kB / 453.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/0.382, allocations: 95.41 kB / 453.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of SimCode: time 9.51e-07/0.382, allocations: 3.938 kB / 453.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0469/0.4289, allocations: 8.872 MB / 462.2 MB, free: 6.008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.11, allocations: 7.844 kB / 462.2 MB, free: 6 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.538179836934432]