Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001805/0.001805, 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.003017/0.003017, allocations: 204.5 kB / 23.72 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.502/1.502, allocations: 230.5 MB / 257.4 MB, free: 7.762 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.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 67.89 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.3236, allocations: 53.41 MB / 431.1 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002997/0.3266, allocations: 2.075 MB / 433.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.3277, allocations: 0.6549 MB / 433.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.262e-05/0.3278, allocations: 4 kB / 433.9 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.328, allocations: 47.64 kB / 433.9 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.3281, allocations: 55.61 kB / 434 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.3284, allocations: 119.8 kB / 434.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003398/0.3288, allocations: 343.2 kB / 434.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.3289, allocations: 52.5 kB / 434.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002436/0.3291, allocations: 147.5 kB / 434.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001933/0.3293, allocations: 143.4 kB / 434.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.89e-05/0.3294, allocations: 31.98 kB / 434.8 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.569e-05/0.3294, allocations: 32 kB / 434.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.638e-05/0.3295, allocations: 87.73 kB / 434.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.887e-05/0.3296, allocations: 103.6 kB / 435 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003069/0.3299, allocations: 291.2 kB / 435.3 MB, free: 2.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.3299, allocations: 4 kB / 435.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3299, allocations: 4 kB / 435.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.3299, allocations: 7.922 kB / 435.3 MB, free: 2.305 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.0009963/0.3309, allocations: 0.5166 MB / 435.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.331, allocations: 11.98 kB / 435.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.246e-05/0.331, allocations: 62.72 kB / 435.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.802e-05/0.3311, allocations: 32.8 kB / 435.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003213/0.3314, allocations: 194.1 kB / 436.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002825/0.3317, allocations: 343.5 kB / 436.4 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.397e-05/0.3318, allocations: 24 kB / 436.5 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008246/0.3326, allocations: 374.6 kB / 436.8 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.3326, allocations: 3.953 kB / 436.8 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.857e-05/0.3326, allocations: 12 kB / 436.8 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.3326, allocations: 7.938 kB / 436.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.334, allocations: 0.4937 MB / 437.3 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.3356, allocations: 0.8913 MB / 438.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009756/0.3365, allocations: 315.1 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005076/0.337, allocations: 169.2 kB / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.3371, allocations: 8 kB / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.3371, allocations: 38.56 kB / 438.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.3371, allocations: 0 / 438.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02577/0.3629, allocations: 5.671 MB / 444.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.3629, allocations: 59.84 kB / 444.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000317/0.3632, allocations: 210.3 kB / 444.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.209e-05/0.3633, allocations: 29.7 kB / 444.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.3634, allocations: 157 kB / 444.9 MB, free: 8.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/0.3636, allocations: 186.4 kB / 445 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.3638, allocations: 90.34 kB / 445.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.364, allocations: 342.8 kB / 445.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.3654, allocations: 469 kB / 445.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/0.3668, allocations: 0.5225 MB / 446.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002441/0.3692, allocations: 0.8101 MB / 447.3 MB, free: 5.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3692, allocations: 0 / 447.3 MB, free: 5.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002939/0.3721, allocations: 1.001 MB / 448.3 MB, free: 4.977 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.3722, allocations: 11.94 kB / 448.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.3722, allocations: 4.125 kB / 448.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.3722, allocations: 4 kB / 448.3 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009721/0.3732, allocations: 171.8 kB / 448.5 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.3732, allocations: 7.938 kB / 448.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006909/0.3739, allocations: 83.89 kB / 448.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.382e-05/0.3739, allocations: 20 kB / 448.6 MB, free: 4.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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002538/0.3742, allocations: 157.7 kB / 448.7 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.931e-05/0.3743, allocations: 31.75 kB / 448.7 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001391/0.3744, allocations: 55.3 kB / 448.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.3744, allocations: 8 kB / 448.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.3744, allocations: 0 / 448.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.3744, allocations: 3.984 kB / 448.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004271/0.3787, allocations: 1.748 MB / 450.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/0.3787, allocations: 8 kB / 450.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000619/0.3793, allocations: 143.8 kB / 450.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.541e-05/0.3793, allocations: 16.41 kB / 450.7 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.226e-05/0.3794, allocations: 16 kB / 450.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.436e-05/0.3794, allocations: 19.92 kB / 450.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-05/0.3794, allocations: 15.94 kB / 450.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003577/0.383, allocations: 1.244 MB / 452 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002716/0.3833, allocations: 71.78 kB / 452.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.066e-05/0.3834, allocations: 24 kB / 452.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007662/0.3841, allocations: 79.84 kB / 452.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002642/0.3844, allocations: 91.66 kB / 452.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.976e-05/0.3844, allocations: 23.98 kB / 452.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002407/0.3847, allocations: 156.3 kB / 452.5 MB, free: 496 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3847, allocations: 0 / 452.5 MB, free: 496 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007287/0.3854, allocations: 92 kB / 452.5 MB, free: 404 kB / 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.004418/0.3898, allocations: 1.81 MB / 454.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003219/0.3931, allocations: 0.7863 MB / 455.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-05/0.3931, allocations: 4.25 kB / 455.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001356/0.3944, allocations: 325.6 kB / 455.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000919/0.3953, allocations: 65.19 kB / 455.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01549/0.4108, allocations: 5.301 MB / 460.8 MB, free: 7.664 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.4111, allocations: 180.2 kB / 461 MB, free: 7.469 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006285/0.4117, allocations: 78.88 kB / 461.1 MB, free: 7.395 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003779/0.4121, allocations: 95.41 kB / 461.2 MB, free: 7.301 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4121, allocations: 0 / 461.2 MB, free: 7.301 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05018/0.4623, allocations: 9.398 MB / 470.6 MB, free: 14.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.99, allocations: 11.06 kB / 470.6 MB, free: 14.05 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.991658814251423]